llvm-project/clang/lib/Lex
Ilya Karapsin 2147e940e8 Add __builtin_FILE_NAME()
Add '__builtin_FILE_NAME()', which expands to the filename because the
full path is not always needed. It corresponds to the '__FILE_NAME__'
predefined macro and is consistent with the other '__builin' functions
added for predefined macros.

Differential Revision: https://reviews.llvm.org/D144878
2023-03-17 09:52:41 -04:00
..
CMakeLists.txt [Support] Move TargetParsers to new component 2022-12-20 11:05:50 +00:00
DependencyDirectivesScanner.cpp [clang] Use std::optional instead of llvm::Optional (NFC) 2023-01-14 12:31:01 -08:00
HeaderMap.cpp Use llvm::byteswap instead of ByteSwap_{16,32,64} (NFC) 2023-01-28 15:22:37 -08:00
HeaderSearch.cpp [clang][Lexer] Fix crash/assert clang::HeaderSearch::search_dir_nth 2023-03-16 02:19:11 -07:00
InitHeaderSearch.cpp [NFC][TargetParser] Remove llvm/ADT/Triple.h 2023-02-07 12:39:46 +00:00
Lexer.cpp Use *{Map,Set}::contains (NFC) 2023-03-15 08:46:32 -07:00
LiteralSupport.cpp Use APInt::count{l,r}_{zero,one} (NFC) 2023-02-19 22:04:47 -08:00
MacroArgs.cpp Use CTAD on llvm::SaveAndRestore 2022-12-02 15:36:12 -08:00
MacroInfo.cpp [clang] Remove remaining uses of llvm::Optional (NFC) 2023-01-14 13:37:25 -08:00
ModuleMap.cpp [clang] Unconditionally add autolink hints for frameworks. 2023-03-16 15:31:17 -07:00
PPCaching.cpp
PPCallbacks.cpp [Clang] Prepare for llvm::Optional becoming std::optional. 2022-12-20 00:41:40 +01:00
PPConditionalDirectiveRecord.cpp
PPDirectives.cpp [Lex] Use line markers in preprocessed assembly predefines file 2023-03-07 16:20:43 +00:00
PPExpressions.cpp Use CTAD on llvm::SaveAndRestore 2022-12-02 15:36:12 -08:00
PPLexerChange.cpp [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas 2023-02-08 14:12:03 -08:00
PPMacroExpansion.cpp Add __builtin_FILE_NAME() 2023-03-17 09:52:41 -04:00
Pragma.cpp [-Wunsafe-buffer-usage] Add unsafe buffer checking opt-out pragmas 2023-02-08 14:12:03 -08:00
PreprocessingRecord.cpp [clang] Remove remaining uses of llvm::Optional (NFC) 2023-01-14 13:37:25 -08:00
Preprocessor.cpp Revert "Currently the control of the eval-method is mixed with fast-math." 2023-03-10 14:44:06 -05:00
PreprocessorLexer.cpp
ScratchBuffer.cpp
TokenConcatenation.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
TokenLexer.cpp [Lex] Fix a crash in updateConsecutiveMacroArgTokens. 2023-02-22 10:16:02 +01:00
UnicodeCharSets.h [Clang] Allow additional mathematical symbols in identifiers. 2022-12-16 10:20:49 +01:00