[all-commits] [llvm/llvm-project] 6ebc3a: [NFC] Replace use of !isTranslationUnit && !isName...

Erich Keane via All-commits all-commits at lists.llvm.org
Thu Oct 6 09:41:09 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ebc3abd7603ddefc08e3ab2f5daed2bdd8ec631
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M clang/lib/AST/DeclBase.cpp

  Log Message:
  [NFC] Replace use of !isTranslationUnit && !isNamespace with !isFileContext

isFileContext is exactly equal to these two, so simplify the function.

More information about the All-commits mailing list