Home
last modified time | relevance | path

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

/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DElseAfterReturnCheck.cpp118 const Stmt *Else, SourceLocation ElseLoc) { in removeElseAndBrackets() argument
128 Diag << tooling::fixit::createRemoval(ElseLoc); in removeElseAndBrackets()
140 SourceLocation ElseExpandedLoc = Remap(ElseLoc); in removeElseAndBrackets()
145 ElseExpandedLoc.getLocWithOffset(TokLen(ElseLoc) + 1), EndLoc), in removeElseAndBrackets()
245 SourceLocation ElseLoc = If->getElseLoc(); in check() local
249 ElseLoc)) in check()
258 diag(ElseLoc, WarningMessage) << ControlFlowInterruptor; in check()
269 DiagnosticBuilder Diag = diag(ElseLoc, WarningMessage) in check()
271 << SourceRange(ElseLoc); in check()
291 removeElseAndBrackets(Diag, *Result.Context, Else, ElseLoc); in check()
[all …]
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()
/external/llvm-project/clang/include/clang/Lex/
DPreprocessor.h440 SourceLocation ElseLoc; member
444 SourceLocation ElseLoc) in PreambleSkipInfo()
447 ElseLoc(ElseLoc) {} in PreambleSkipInfo()
2114 SourceLocation ElseLoc = SourceLocation());
/external/llvm-project/clang/lib/Parse/
DParseStmt.cpp1427 SourceLocation ElseLoc; in ParseIfStatement() local
1435 ElseLoc = ConsumeToken(); in ParseIfStatement()
1450 MisleadingIndentationChecker MIChecker(*this, MSK_else, ElseLoc); in ParseIfStatement()
1490 RParen, ThenStmt.get(), ElseLoc, ElseStmt.get()); in ParseIfStatement()
/external/clang/lib/Parse/
DParseStmt.cpp1191 SourceLocation ElseLoc; in ParseIfStatement() local
1199 ElseLoc = ConsumeToken(); in ParseIfStatement()
1248 ThenStmt.get(), ElseLoc, ElseStmt.get()); in ParseIfStatement()
/external/clang/lib/Lex/
DPPDirectives.cpp369 SourceLocation ElseLoc) { in SkipExcludedConditionalBlock() argument
575 SourceLocation BeginLoc = ElseLoc.isValid() ? ElseLoc : IfTokenLoc; in SkipExcludedConditionalBlock()
/external/clang/include/clang/AST/
DStmt.h886 SourceLocation ElseLoc; variable
930 SourceLocation getElseLoc() const { return ElseLoc; } in getElseLoc()
931 void setElseLoc(SourceLocation L) { ElseLoc = L; } in setElseLoc()
/external/clang/lib/Sema/
DSemaStmt.cpp509 Stmt *thenStmt, SourceLocation ElseLoc, in ActOnIfStmt() argument
528 return BuildIfStmt(IfLoc, IsConstexpr, InitStmt, Cond, thenStmt, ElseLoc, in ActOnIfStmt()
534 Stmt *thenStmt, SourceLocation ElseLoc, in BuildIfStmt() argument
547 Cond.get().second, thenStmt, ElseLoc, elseStmt); in BuildIfStmt()
DTreeTransform.h1178 SourceLocation ElseLoc, Stmt *Else) { in RebuildIfStmt() argument
1180 ElseLoc, Else); in RebuildIfStmt()
/external/llvm-project/clang/lib/Sema/
DSemaStmt.cpp583 Stmt *thenStmt, SourceLocation ElseLoc, in ActOnIfStmt() argument
631 thenStmt, ElseLoc, elseStmt); in ActOnIfStmt()
637 Stmt *thenStmt, SourceLocation ElseLoc, in BuildIfStmt() argument
647 ElseLoc, elseStmt); in BuildIfStmt()
DTreeTransform.h1325 SourceLocation ElseLoc, Stmt *Else) { in RebuildIfStmt() argument
1327 RParenLoc, Then, ElseLoc, Else); in RebuildIfStmt()
/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp419 SourceLocation ElseLoc) { in SkipExcludedConditionalBlock() argument
456 HashTokenLoc, IfTokenLoc, FoundNonSkipPortion, FoundElse, ElseLoc); in SkipExcludedConditionalBlock()
DPreprocessor.cpp683 PreambleConditionalStack.SkipInfo->ElseLoc); in replayPreambleConditionalStack()
/external/clang/include/clang/Lex/
DPreprocessor.h1760 SourceLocation ElseLoc = SourceLocation());
/external/clang/lib/AST/
DStmt.cpp769 : Stmt(IfStmtClass), IfLoc(IL), ElseLoc(EL) { in IfStmt()
/external/llvm-project/clang/include/clang/AST/
DStmt.h2071 void setElseLoc(SourceLocation ElseLoc) { in setElseLoc() argument
2074 *getTrailingObjects<SourceLocation>() = ElseLoc; in setElseLoc()
/external/clang/include/clang/Sema/
DSema.h3402 SourceLocation ElseLoc, Stmt *ElseVal);
3406 SourceLocation ElseLoc, Stmt *ElseVal);
/external/llvm-project/clang/include/clang/Sema/
DSema.h4524 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal);
4528 Stmt *ThenVal, SourceLocation ElseLoc, Stmt *ElseVal);
/external/llvm-project/clang/lib/Serialization/
DASTReader.cpp3333 SourceLocation ElseLoc = ReadSourceLocation(F, Record, Idx); in ReadASTBlock() local
3335 FoundElse, ElseLoc); in ReadASTBlock()
DASTWriter.cpp2168 AddSourceLocation(SkipInfo->ElseLoc, Record); in WritePreprocessor()