/llvm-project/clang-tools-extra/clang-tidy/utils/ |
H A D | LexerUtils.cpp | 18 getPreviousTokenAndStart(SourceLocation Location, const SourceManager &SM, in getPreviousTokenAndStart() argument 60 SourceLocation L = findPreviousTokenStart(Start, SM, LangOpts); in findPreviousTokenKind() argument 39 getPreviousToken(SourceLocation Location,const SourceManager & SM,const LangOptions & LangOpts,bool SkipComments) getPreviousToken() argument 47 findPreviousTokenStart(SourceLocation Start,const SourceManager & SM,const LangOptions & LangOpts) findPreviousTokenStart() argument 82 findNextTerminator(SourceLocation Start,const SourceManager & SM,const LangOptions & LangOpts) findNextTerminator() argument 88 findNextTokenIncludingComments(SourceLocation Start,const SourceManager & SM,const LangOptions & LangOpts) findNextTokenIncludingComments() argument 111 findNextTokenSkippingComments(SourceLocation Start,const SourceManager & SM,const LangOptions & LangOpts) findNextTokenSkippingComments() argument 126 rangeContainsExpansionsOrDirectives(SourceRange Range,const SourceManager & SM,const LangOptions & LangOpts) rangeContainsExpansionsOrDirectives() argument 152 getQualifyingToken(tok::TokenKind TK,CharSourceRange Range,const ASTContext & Context,const SourceManager & SM) getQualifyingToken() argument 200 getSemicolonAfterStmtEndLoc(const SourceLocation & EndLoc,const SourceManager & SM,const LangOptions & LangOpts) getSemicolonAfterStmtEndLoc() argument 236 getUnifiedEndLoc(const Stmt & S,const SourceManager & SM,const LangOptions & LangOpts) getUnifiedEndLoc() argument 253 getLocationForNoexceptSpecifier(const FunctionDecl * FuncDecl,const SourceManager & SM) getLocationForNoexceptSpecifier() argument [all...] |
H A D | ASTUtils.cpp | 38 bool exprHasBitFlagWithSpelling(const Expr *Flags, const SourceManager &SM, in exprHasBitFlagWithSpelling() argument 66 const SourceManager *SM) { in rangeIsEntirelyWithinMacroArgument() argument 81 rangeContainsMacroExpansion(SourceRange Range,const SourceManager * SM) rangeContainsMacroExpansion() argument 86 rangeCanBeFixed(SourceRange Range,const SourceManager * SM) rangeCanBeFixed() argument [all...] |
H A D | FileExtensionsUtils.cpp | 16 bool isExpansionLocInHeaderFile(SourceLocation Loc, const SourceManager &SM, in isExpansionLocInHeaderFile() 22 bool isPresumedLocInHeaderFile(SourceLocation Loc, SourceManager &SM, in isPresumedLocInHeaderFile() 28 bool isSpellingLocInHeaderFile(SourceLocation Loc, SourceManager &SM, in isSpellingLocInHeaderFile()
|
/llvm-project/clang/lib/Tooling/Transformer/ |
H A D | SourceCode.cpp | 54 const SourceManager &SM, in validateRange() 85 const SourceManager &SM) { in validateEditRange() 90 const SourceManager &SM) { in spelledInMacroDefinition() 108 getExpansionForSplitToken(SourceLocation Loc, const SourceManager &SM, in getExpansionForSplitToken() 129 const SourceManager &SM, in getRangeForSplitTokens() 153 const SourceManager &SM, in getRange() 175 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRangeForEdit() 186 const CharSourceRange &EditRange, const SourceManager &SM, in getFileRange() 197 static bool startsWithNewline(const SourceManager &SM, const Token &Tok) { in startsWithNewline() 215 getEntityEndLoc(const SourceManager &SM, SourceLocation EntityLast, in getEntityEndLoc() [all …]
|
/llvm-project/libcxx/test/std/re/re.submatch/ |
H A D | types.pass.cpp | 33 typedef std::sub_match<char*> SM; in main() typedef 51 typedef std::sub_match<wchar_t*> SM; in main() typedef
|
/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
H A D | DeprecatedHeadersCheck.cpp | 44 const SourceManager &SM; member in clang::tidy::modernize::__anon813512180111::IncludeModernizePPCallbacks 51 const SourceManager &SM; member in clang::tidy::modernize::__anon813512180111::ExternCRefutationVisitor 55 SourceManager &SM) in ExternCRefutationVisitor() 88 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks() 110 SourceManager &SM = Result.Context->getSourceManager(); in check() local 136 const SourceManager &SM, bool CheckHeaderFile) in IncludeModernizePPCallbacks()
|
/llvm-project/llvm/include/llvm/MCA/Stages/ |
H A D | EntryStage.h | 29 SourceMgr &SM; variable 39 EntryStage(SourceMgr &SM) : SM(SM), NumRetired(0) {} in EntryStage()
|
/llvm-project/libcxx/test/std/re/re.submatch/re.submatch.members/ |
H A D | default.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 30 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | length.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 35 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | compare_value_type_ptr.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 36 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | compare_string_type.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 37 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | str.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 37 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | compare_sub_match.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 40 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | operator_string.pass.cpp | 23 typedef std::sub_match<const CharT*> SM; in main() typedef 37 typedef std::sub_match<const CharT*> SM; in main() typedef
|
H A D | swap.pass.cpp | 22 using SM = std::sub_match<const CharT*>; in main() typedef 50 using SM = std::sub_match<const CharT*>; in main() typedef
|
/llvm-project/llvm/unittests/Support/ |
H A D | YAMLParserTest.cpp | 32 SourceMgr SM; in ExpectParseError() local 41 SourceMgr SM; in ExpectParseSuccess() local 208 SourceMgr SM; in TEST() local 240 SourceMgr SM; in TEST() local 249 SourceMgr SM; in ExpectCanParseString() local 286 SourceMgr SM; in TEST() local 294 SourceMgr SM; in TEST() local 307 SourceMgr SM; in TEST() local 322 SourceMgr SM; in TEST() local 337 SourceMgr SM; in TEST() local [all …]
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | SourceCode.cpp | 214 Position sourceLocToPosition(const SourceManager &SM, SourceLocation Loc) { in sourceLocToPosition() argument 231 bool isSpelledInSource(SourceLocation Loc, const SourceManager &SM) { in isSpelledInSource() argument 264 includeHashLoc(FileID IncludedFile,const SourceManager & SM) includeHashLoc() argument 286 getTokenLengthAtLoc(SourceLocation Loc,const SourceManager & SM,const LangOptions & LangOpts) getTokenLengthAtLoc() argument 303 getLocForTokenEnd(SourceLocation BeginLoc,const SourceManager & SM,const LangOptions & LangOpts) getLocForTokenEnd() argument 311 getLocForTokenBegin(SourceLocation EndLoc,const SourceManager & SM,const LangOptions & LangOpts) getLocForTokenBegin() argument 318 toTokenRange(CharSourceRange Range,const SourceManager & SM,const LangOptions & LangOpts) toTokenRange() argument 328 unionTokenRange(SourceRange R1,SourceRange R2,const SourceManager & SM,const LangOptions & LangOpts) unionTokenRange() argument 345 rangeInCommonFile(SourceRange R,const SourceManager & SM,const LangOptions & LangOpts) rangeInCommonFile() argument 378 getExpansionTokenRangeInSameFile(SourceLocation Loc,const SourceManager & SM,const LangOptions & LangOpts) getExpansionTokenRangeInSameFile() argument 396 getTokenFileRange(SourceLocation Loc,const SourceManager & SM,const LangOptions & LangOpts) getTokenFileRange() argument 423 isInsideMainFile(SourceLocation Loc,const SourceManager & SM) isInsideMainFile() argument 430 toHalfOpenFileRange(const SourceManager & SM,const LangOptions & LangOpts,SourceRange R) toHalfOpenFileRange() argument 452 toSourceCode(const SourceManager & SM,SourceRange R) toSourceCode() argument 462 sourceLocationInMainFile(const SourceManager & SM,Position P) sourceLocationInMainFile() argument 472 halfOpenToRange(const SourceManager & SM,CharSourceRange R) halfOpenToRange() argument 575 digestFile(const SourceManager & SM,FileID FID) digestFile() argument 627 auto &SM = FileSM.get(); lex() local 636 __anon62d37b1a0602(const syntax::Token &Tok, const SourceManager &SM) collectIdentifiers() argument 651 __anon62d37b1a0702(const syntax::Token &Tok, const SourceManager &SM) collectIdentifierRanges() argument 696 __anon62d37b1a0b02(const syntax::Token &Tok, const SourceManager &SM) parseNamespaceEvents() argument 816 isMainFile(llvm::StringRef FileName,const SourceManager & SM) isMainFile() argument 952 const auto &SM = TB.sourceManager(); touching() local 1005 const auto &SM = PP.getSourceManager(); locateMacroAt() local 1232 isProtoFile(SourceLocation Loc,const SourceManager & SM) isProtoFile() argument 1245 translatePreamblePatchLocation(SourceLocation Loc,const SourceManager & SM) translatePreamblePatchLocation() argument [all...] |
/llvm-project/clang/lib/Analysis/ |
H A D | CFGStmtMap.cpp | 28 SMap *SM = AsMap(M); in getBlock() local 49 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() 82 SMap *SM = new SMap(); in Build() local
|
/llvm-project/clang-tools-extra/clang-tidy/readability/ |
H A D | MisleadingIndentationCheck.cpp | 18 static const IfStmt *getPrecedingIf(const SourceManager &SM, in getPrecedingIf() 32 void MisleadingIndentationCheck::danglingElseCheck(const SourceManager &SM, in danglingElseCheck() 56 const SourceManager &SM, in isAtStartOfLineIncludingEmptyMacro() 67 const SourceManager &SM, const CompoundStmt *CStmt, in missingBracesCheck()
|
H A D | DuplicateIncludeCheck.cpp | 18 static SourceLocation advanceBeyondCurrentLine(const SourceManager &SM, in advanceBeyondCurrentLine() 36 const SourceManager &SM) in DuplicateIncludeCallbacks() 64 const SourceManager &SM; member in clang::tidy::readability::__anon25dba1e70111::DuplicateIncludeCallbacks 113 const SourceManager &SM, Preprocessor *PP, Preprocessor *ModuleExpanderPP) { in registerPPCallbacks()
|
H A D | BracesAroundStatementsCheck.cpp | 20 static tok::TokenKind getTokenKind(SourceLocation Loc, const SourceManager &SM, in getTokenKind() 34 forwardSkipWhitespaceAndComments(SourceLocation Loc, const SourceManager &SM, in forwardSkipWhitespaceAndComments() 71 const SourceManager &SM = *Result.SourceManager; in check() local 114 const SourceManager &SM, in findRParenLoc()
|
/llvm-project/clang/lib/Lex/ |
H A D | TokenConcatenation.cpp | 53 SourceManager &SM = PP.getSourceManager(); in IsIdentifierStringPrefix() local 136 SourceManager &SM = PP.getSourceManager(); in GetFirstChar() local 171 SourceManager &SM = PP.getSourceManager(); AvoidConcat() local
|
/llvm-project/clang/include/clang/Basic/ |
H A D | PlistSupport.h | 39 AddFID(FIDMap & FIDs,SmallVectorImpl<FileID> & V,const SourceManager & SM,SourceLocation L) AddFID() argument 50 GetFID(const FIDMap & FIDs,const SourceManager & SM,SourceLocation L) GetFID() argument 106 EmitLocation(raw_ostream & o,const SourceManager & SM,SourceLocation L,const FIDMap & FM,unsigned indent) EmitLocation() argument 122 EmitRange(raw_ostream & o,const SourceManager & SM,CharSourceRange R,const FIDMap & FM,unsigned indent) EmitRange() argument [all...] |
/llvm-project/clang/lib/Tooling/Refactoring/Extract/ |
H A D | SourceExtraction.cpp | 22 bool isSemicolonAtLocation(SourceLocation TokenLoc, const SourceManager &SM, in isSemicolonAtLocation() 62 const SourceManager &SM) { in areOnSameLine() 74 const SourceManager &SM, in compute()
|
/llvm-project/clang-tools-extra/clang-move/ |
H A D | Move.cpp | 87 std::string MakeAbsolutePath(const SourceManager &SM, StringRef Path) { in MakeAbsolutePath() 128 explicit FindAllIncludes(SourceManager *SM, ClangMoveTool *const MoveTool) in FindAllIncludes() 145 const SourceManager &SM; member in clang::move::__anon441e22450111::FindAllIncludes 231 SourceManager *SM = &Result.Context->getSourceManager(); in run() local 243 void MatchClassMethod(const CXXMethodDecl *CMD, SourceManager *SM) { in MatchClassMethod() 258 void MatchClassStaticVariable(const NamedDecl *VD, SourceManager *SM) { in MatchClassStaticVariable() 262 void MatchClassDeclaration(const CXXRecordDecl *CD, SourceManager *SM) { in MatchClassDeclaration() 281 const auto &SM = D->getASTContext().getSourceManager(); in getLocForEndOfDecl() local 314 const auto &SM = D->getASTContext().getSourceManager(); in getFullRange() local 330 const auto &SM = D->getASTContext().getSourceManager(); in getDeclarationSourceText() local [all …]
|