Home
last modified time | relevance | path

Searched refs:ElseLoc (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DElseAfterReturnCheck.cpp128 Diag << tooling::fixit::createRemoval(ElseLoc); in removeElseAndBrackets()
140 SourceLocation ElseExpandedLoc = Remap(ElseLoc); in removeElseAndBrackets()
244 SourceLocation ElseLoc = If->getElseLoc(); in check() local
248 ElseLoc)) in check()
257 diag(ElseLoc, WarningMessage) << ControlFlowInterruptor; in check()
268 DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage) in check()
270 << SourceRange(ElseLoc); in check()
293 diag(ElseLoc, WarningMessage) << ControlFlowInterruptor; in check()
304 DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage) in check()
306 << SourceRange(ElseLoc); in check()
[all …]
H A DMisleadingIndentationCheck.cpp37 SourceLocation ElseLoc = If->getElseLoc(); in danglingElseCheck() local
39 if (IfLoc.isMacroID() || ElseLoc.isMacroID()) in danglingElseCheck()
43 SM.getExpansionLineNumber(ElseLoc)) in danglingElseCheck()
52 SM.getExpansionColumnNumber(ElseLoc)) in danglingElseCheck()
53 diag(ElseLoc, "different indentation for 'if' and corresponding 'else'"); in danglingElseCheck()
/llvm-project-15.0.7/clang/include/clang/Lex/
H A DPreprocessor.h534 SourceLocation ElseLoc; member
538 SourceLocation ElseLoc) in PreambleSkipInfo()
541 ElseLoc(ElseLoc) {} in PreambleSkipInfo()
2339 SourceLocation ElseLoc = SourceLocation());
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseStmt.cpp1532 SourceLocation ElseLoc; in ParseIfStatement() local
1540 ElseLoc = ConsumeToken(); in ParseIfStatement()
1555 MisleadingIndentationChecker MIChecker(*this, MSK_else, ElseLoc); in ParseIfStatement()
1607 Diag(ElseLoc, diag::err_expected_after) << "else" in ParseIfStatement()
1627 ThenStmt.get(), ElseLoc, ElseStmt.get()); in ParseIfStatement()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaStmt.cpp882 Stmt *thenStmt, SourceLocation ElseLoc, in ActOnIfStmt() argument
947 thenStmt, ElseLoc, elseStmt); in ActOnIfStmt()
954 Stmt *thenStmt, SourceLocation ElseLoc, in BuildIfStmt() argument
965 RParenLoc, thenStmt, ElseLoc, elseStmt); in BuildIfStmt()
H A DTreeTransform.h1331 SourceLocation ElseLoc, Stmt *Else) { in RebuildIfStmt() argument
1333 Then, ElseLoc, Else); in RebuildIfStmt()
/llvm-project-15.0.7/clang/lib/Lex/
H A DPreprocessor.cpp695 PreambleConditionalStack.SkipInfo->ElseLoc); in replayPreambleConditionalStack()
H A DPPDirectives.cpp484 SourceLocation ElseLoc) { in SkipExcludedConditionalBlock() argument
577 FoundElse, ElseLoc); in SkipExcludedConditionalBlock()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DStmt.h2107 void setElseLoc(SourceLocation ElseLoc) { in setElseLoc() argument
2110 *getTrailingObjects<SourceLocation>() = ElseLoc; in setElseLoc()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h4958 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal);
4962 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal);
/llvm-project-15.0.7/clang/lib/Serialization/
H A DASTReader.cpp3421 SourceLocation ElseLoc = ReadSourceLocation(F, Record, Idx); in ReadASTBlock() local
3423 FoundElse, ElseLoc); in ReadASTBlock()
H A DASTWriter.cpp2316 AddSourceLocation(SkipInfo->ElseLoc, Record); in WritePreprocessor()