Home
last modified time | relevance | path

Searched refs:SpellingLoc (Results 1 – 24 of 24) sorted by relevance

/external/llvm-project/clang/include/clang/Basic/
DSourceManager.h351 unsigned SpellingLoc; variable
366 SourceLocation SpellLoc = SourceLocation::getFromRawEncoding(SpellingLoc); in getSpellingLoc()
409 static ExpansionInfo create(SourceLocation SpellingLoc, SourceLocation Start,
413 X.SpellingLoc = SpellingLoc.getRawEncoding();
439 static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc, in createForMacroArg() argument
444 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg()
452 static ExpansionInfo createForTokenSplit(SourceLocation SpellingLoc, in createForTokenSplit() argument
455 return create(SpellingLoc, Start, End, false); in createForTokenSplit()
921 SourceLocation createTokenSplitLoc(SourceLocation SpellingLoc,
1092 FileID getFileID(SourceLocation SpellingLoc) const { in getFileID() argument
[all …]
/external/clang/include/clang/Basic/
DSourceManager.h305 unsigned SpellingLoc; variable
317 return SourceLocation::getFromRawEncoding(SpellingLoc); in getSpellingLoc()
354 static ExpansionInfo create(SourceLocation SpellingLoc, in create() argument
357 X.SpellingLoc = SpellingLoc.getRawEncoding(); in create()
382 static ExpansionInfo createForMacroArg(SourceLocation SpellingLoc, in createForMacroArg() argument
387 return create(SpellingLoc, ExpansionLoc, SourceLocation()); in createForMacroArg()
987 FileID getFileID(SourceLocation SpellingLoc) const { in getFileID() argument
988 unsigned SLocOffset = SpellingLoc.getOffset(); in getFileID()
998 StringRef getFilename(SourceLocation SpellingLoc) const { in getFilename() argument
999 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) in getFilename()
[all …]
/external/llvm-project/clang-tools-extra/clang-tidy/utils/
DFileExtensionsUtils.cpp31 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in isSpellingLocInHeaderFile() local
32 return isFileExtension(SM.getFilename(SpellingLoc), HeaderFileExtensions); in isSpellingLocInHeaderFile()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DUppercaseLiteralSuffixCheck.cpp71 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in GetMacroAwareLocation() local
72 if (SpellingLoc.isInvalid()) in GetMacroAwareLocation()
74 return SpellingLoc; in GetMacroAwareLocation()
/external/llvm-project/clang-tools-extra/clangd/index/
DSymbolCollector.cpp422 auto SpellingLoc = SM.getSpellingLoc(Loc); in handleMacroOccurrence() local
429 (Opts.RefsInHeaders || SM.getFileID(SpellingLoc) == SM.getMainFileID())) in handleMacroOccurrence()
446 SM.getFileID(SpellingLoc) == SM.getMainFileID()) in handleMacroOccurrence()
/external/llvm-project/clang/lib/Basic/
DSourceManager.cpp620 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc() argument
623 ExpansionInfo Info = ExpansionInfo::createForMacroArg(SpellingLoc, in createMacroArgExpansionLoc()
629 SourceManager::createExpansionLoc(SourceLocation SpellingLoc, in createExpansionLoc() argument
637 SpellingLoc, ExpansionLocStart, ExpansionLocEnd, ExpansionIsTokenRange); in createExpansionLoc()
1008 StringRef SourceManager::getFilename(SourceLocation SpellingLoc) const { in getFilename()
1009 if (const FileEntry *F = getFileEntryForID(getFileID(SpellingLoc))) in getFilename()
/external/clang/lib/Frontend/
DDiagnosticRenderer.cpp428 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in emitSingleMacroExpansion() local
443 emitDiagnostic(SpellingLoc, DiagnosticsEngine::Note, Message.str(), in emitSingleMacroExpansion()
/external/llvm-project/clang/lib/Frontend/
DDiagnosticRenderer.cpp433 FullSourceLoc SpellingLoc = Loc.getSpellingLoc(); in emitSingleMacroExpansion() local
448 emitDiagnostic(SpellingLoc, DiagnosticsEngine::Note, Message.str(), in emitSingleMacroExpansion()
/external/clang/lib/Lex/
DLexer.cpp164 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer() argument
171 FileID SpellingFID = SM.getFileID(SpellingLoc); in Create_PragmaLexer()
178 const char *StrData = SM.getCharacterData(SpellingLoc); in Create_PragmaLexer()
1057 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc() local
1058 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1065 return SM.createExpansionLoc(SpellingLoc, II.first, II.second, TokLen); in GetMappedTokenLoc()
/external/clang/include/clang/Lex/
DLexer.h120 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
/external/llvm-project/clang/lib/Lex/
DLexer.cpp189 Lexer *Lexer::Create_PragmaLexer(SourceLocation SpellingLoc, in Create_PragmaLexer() argument
196 FileID SpellingFID = SM.getFileID(SpellingLoc); in Create_PragmaLexer()
203 const char *StrData = SM.getCharacterData(SpellingLoc); in Create_PragmaLexer()
1117 SourceLocation SpellingLoc = SM.getSpellingLoc(FileLoc); in GetMappedTokenLoc() local
1118 SpellingLoc = SpellingLoc.getLocWithOffset(CharNo); in GetMappedTokenLoc()
1124 return SM.createExpansionLoc(SpellingLoc, II.getBegin(), II.getEnd(), TokLen); in GetMappedTokenLoc()
DPreprocessor.cpp507 SourceLocation SpellingLoc = SM.getSpellingLoc(Loc); in SplitToken() local
508 std::pair<FileID, unsigned> LocInfo = SM.getDecomposedLoc(SpellingLoc); in SplitToken()
/external/llvm-project/clang/include/clang/Lex/
DLexer.h165 static Lexer *Create_PragmaLexer(SourceLocation SpellingLoc,
/external/llvm-project/clang-tools-extra/clangd/
DSelection.cpp175 bool isFirstExpansion(FileID Target, SourceLocation SpellingLoc, in isFirstExpansion() argument
177 SourceLocation Prev = SpellingLoc; in isFirstExpansion()
DXRefs.cpp426 bool tokenSpelledAt(SourceLocation SpellingLoc, const syntax::TokenBuffer &TB) { in tokenSpelledAt() argument
428 TB.sourceManager().getMacroArgExpandedLocation(SpellingLoc)); in tokenSpelledAt()
/external/clang/lib/Basic/
DSourceManager.cpp591 SourceManager::createMacroArgExpansionLoc(SourceLocation SpellingLoc, in createMacroArgExpansionLoc() argument
594 ExpansionInfo Info = ExpansionInfo::createForMacroArg(SpellingLoc, in createMacroArgExpansionLoc()
600 SourceManager::createExpansionLoc(SourceLocation SpellingLoc, in createExpansionLoc() argument
606 ExpansionInfo Info = ExpansionInfo::create(SpellingLoc, ExpansionLocStart, in createExpansionLoc()
/external/llvm-project/clang/lib/AST/
DTextNodeDumper.cpp580 SourceLocation SpellingLoc = SM->getSpellingLoc(Loc); in dumpLocation() local
584 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation()
/external/clang/lib/AST/
DASTDumper.cpp593 SourceLocation SpellingLoc = SM->getSpellingLoc(Loc); in dumpLocation() local
597 PresumedLoc PLoc = SM->getPresumedLoc(SpellingLoc); in dumpLocation()
/external/clang/lib/Parse/
DParseDeclCXX.cpp3637 SourceLocation SpellingLoc = in TryParseCXX11AttributeIdentifier() local
3639 StringRef Spelling = PP.getSpelling(SpellingLoc, SpellingBuf); in TryParseCXX11AttributeIdentifier()
/external/llvm-project/clang/lib/Parse/
DParseDeclCXX.cpp4031 SourceLocation SpellingLoc = in TryParseCXX11AttributeIdentifier() local
4033 StringRef Spelling = PP.getSpelling(SpellingLoc, SpellingBuf); in TryParseCXX11AttributeIdentifier()
/external/clang/lib/Sema/
DSemaDeclCXX.cpp1951 SourceLocation SpellingLoc = Loc; in DiagnoseAbsenceOfOverrideControl() local
1953 SpellingLoc = getSourceManager().getImmediateExpansionRange(Loc).first; in DiagnoseAbsenceOfOverrideControl()
1954 SpellingLoc = getSourceManager().getSpellingLoc(SpellingLoc); in DiagnoseAbsenceOfOverrideControl()
1955 if (SpellingLoc.isValid() && getSourceManager().isInSystemHeader(SpellingLoc)) in DiagnoseAbsenceOfOverrideControl()
/external/llvm-project/clang/lib/Sema/
DSemaDeclCXX.cpp3081 SourceLocation SpellingLoc = Loc; in DiagnoseAbsenceOfOverrideControl() local
3083 SpellingLoc = getSourceManager().getImmediateExpansionRange(Loc).getBegin(); in DiagnoseAbsenceOfOverrideControl()
3084 SpellingLoc = getSourceManager().getSpellingLoc(SpellingLoc); in DiagnoseAbsenceOfOverrideControl()
3085 if (SpellingLoc.isValid() && getSourceManager().isInSystemHeader(SpellingLoc)) in DiagnoseAbsenceOfOverrideControl()
/external/clang/lib/Serialization/
DASTReader.cpp1329 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1330 SourceMgr.createExpansionLoc(SpellingLoc, in ReadSLocEntry()
/external/llvm-project/clang/lib/Serialization/
DASTReader.cpp1568 SourceLocation SpellingLoc = ReadSourceLocation(*F, Record[1]); in ReadSLocEntry() local
1569 SourceMgr.createExpansionLoc(SpellingLoc, in ReadSLocEntry()