Home
last modified time | relevance | path

Searched refs:AssertLoc (Results 1 – 2 of 2) sorted by relevance

/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DStaticAssertCheck.cpp112 SourceLocation AssertLoc = SM.getImmediateMacroCallerLoc(AssertExpansionLoc); in check() local
116 if (AssertLoc.isValid() && !AssertLoc.isMacroID() && in check()
117 (LastParenLoc = getLastParenLoc(ASTCtx, AssertLoc)).isValid()) { in check()
119 FixItHint::CreateReplacement(SourceRange(AssertLoc), "static_assert")); in check()
134 diag(AssertLoc, "found assert() that could be replaced by static_assert()") in check()
139 SourceLocation AssertLoc) { in getLastParenLoc() argument
144 SM.getBufferOrNone(SM.getFileID(AssertLoc)); in getLastParenLoc()
148 const char *BufferPos = SM.getCharacterData(AssertLoc); in getLastParenLoc()
151 Lexer Lexer(SM.getLocForStartOfFile(SM.getFileID(AssertLoc)), Opts, in getLastParenLoc()
DStaticAssertCheck.h36 SourceLocation AssertLoc);