[all-commits] [llvm/llvm-project] 46ea46: Return false if the identifier is not in the globa...

Vassil Vassilev via All-commits all-commits at lists.llvm.org
Mon Jun 22 01:03:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 46ea465b5b741fb0bf6e2cedd5cd6bf7026cd3c6
      https://github.com/llvm/llvm-project/commit/46ea465b5b741fb0bf6e2cedd5cd6bf7026cd3c6
  Author: Vassil Vassilev <v.g.vassilev at gmail.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M clang/lib/Serialization/GlobalModuleIndex.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list