Return false if the identifier is not in the global module index.
commit46ea465b5b741fb0bf6e2cedd5cd6bf7026cd3c6
authorVassil Vassilev <v.g.vassilev@gmail.com>
Fri, 19 Jun 2020 07:01:02 +0000 (19 07:01 +0000)
committerVassil Vassilev <v.g.vassilev@gmail.com>
Mon, 22 Jun 2020 08:03:11 +0000 (22 08:03 +0000)
tree84c99cd1f98f2d1dccefecf7b59a72277d06b7b1
parent29b2c1ca72096ca06415b5e626e6728c42ef1e74
Return false if the identifier is not in the global module index.

This allows clients to use the idiom:

if (GlobalIndex->lookupIdentifier(Name, FoundModules)) {
  // work on the FoundModules
}

This is also a minor performance improvent for clang.

Differential Revision: https://reviews.llvm.org/D81077
clang/lib/Serialization/GlobalModuleIndex.cpp