[clang] 7b67908 - [clang][lex] NFC: Remove unused HeaderFileInfo member
    Jan Svoboda via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Thu Nov 18 03:33:31 PST 2021
    
    
  
Author: Jan Svoboda
Date: 2021-11-18T12:33:26+01:00
New Revision: 7b6790850968031fe1c098ed6dcc196ddc547ea5
URL: https://github.com/llvm/llvm-project/commit/7b6790850968031fe1c098ed6dcc196ddc547ea5
DIFF: https://github.com/llvm/llvm-project/commit/7b6790850968031fe1c098ed6dcc196ddc547ea5.diff
LOG: [clang][lex] NFC: Remove unused HeaderFileInfo member
This patch removes `HeaderFileInfo::isNonDefault`, which is not being used anywhere.
Reviewed By: dexonsmith, vsapsai
Differential Revision: https://reviews.llvm.org/D114092
Added: 
    
Modified: 
    clang/include/clang/Lex/HeaderSearch.h
Removed: 
    
################################################################################
diff  --git a/clang/include/clang/Lex/HeaderSearch.h b/clang/include/clang/Lex/HeaderSearch.h
index 1ab1b4f235745..7f5c4c260f556 100644
--- a/clang/include/clang/Lex/HeaderSearch.h
+++ b/clang/include/clang/Lex/HeaderSearch.h
@@ -130,13 +130,6 @@ struct HeaderFileInfo {
   /// any.
   const IdentifierInfo *
   getControllingMacro(ExternalPreprocessorSource *External);
-
-  /// Determine whether this is a non-default header file info, e.g.,
-  /// it corresponds to an actual header we've included or tried to include.
-  bool isNonDefault() const {
-    return isImport || isPragmaOnce || NumIncludes || ControllingMacro ||
-      ControllingMacroID;
-  }
 };
 
 /// An external source of header file information, which may supply
        
    
    
More information about the cfe-commits
mailing list