/freebsd/contrib/llvm-project/clang/lib/Parse/ |
H A D | ParsePragma.cpp | 112 Token &Tok) override { in HandlePragma() 113 Token PragmaName = Tok; in HandlePragma() 115 PP.Diag(Tok.getLocation(), diag::warn_pragma_fp_ignored) in HandlePragma() 127 Toks[0].setLocation(Tok.getLocation()); in HandlePragma() 128 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma() 141 Token &Tok) override { in HandlePragma() 151 Toks[0].setLocation(Tok.getLocation()); in HandlePragma() 152 Toks[0].setAnnotationEndLoc(Tok.getLocation()); in HandlePragma() 165 Token &Tok) override; 321 Token Tok; in HandlePragma() local [all …]
|
H A D | ParseCXXInlineMethods.cpp | 25 if (!Tok.is(tok::l_paren)) in ParseCXXDeletedFunctionMessage() 41 Diag(Tok.getLocation(), diag::err_expected_string_literal) in ParseCXXDeletedFunctionMessage() 54 if (!Tok.is(tok::l_paren)) in SkipDeletedFunctionBody() 62 if (Tok.is(tok::r_paren)) in SkipDeletedFunctionBody() 74 assert(Tok.isOneOf(tok::l_brace, tok::colon, tok::kw_try, tok::equal) && in ParseCXXInlineMethodDef() 110 SourceLocation KWEndLoc = Tok.getEndLoc().getLocWithOffset(-1); in ParseCXXInlineMethodDef() 135 if (Tok.is(tok::comma)) { in ParseCXXInlineMethodDef() 184 tok::TokenKind kind = Tok.getKind(); in ParseCXXInlineMethodDef() 194 llvm::any_of(Toks, [](const Token &Tok) { in ParseCXXInlineMethodDef() argument 195 return Tok.is(tok::code_completion); in ParseCXXInlineMethodDef() [all …]
|
H A D | ParseOpenMP.cpp | 197 Token Tok = P.getCurToken(); in parseOpenMPDirectiveKind() local 199 Tok.isAnnotation() in parseOpenMPDirectiveKind() 201 : getOpenMPDirectiveKindEx(P.getPreprocessor().getSpelling(Tok)); in parseOpenMPDirectiveKind() 209 Tok = P.getPreprocessor().LookAhead(0); in parseOpenMPDirectiveKind() 211 Tok.isAnnotation() in parseOpenMPDirectiveKind() 213 : getOpenMPDirectiveKindEx(P.getPreprocessor().getSpelling(Tok)); in parseOpenMPDirectiveKind() 228 Token Tok = P.getCurToken(); in parseOpenMPReductionId() local 233 if (Tok.is(tok::kw_operator)) { in parseOpenMPReductionId() 235 Tok = P.getCurToken(); in parseOpenMPReductionId() 238 switch (Tok.getKind()) { in parseOpenMPReductionId() [all …]
|
H A D | Parser.cpp | 60 Tok.startToken(); in Parser() 61 Tok.setKind(tok::eof); in Parser() 85 DiagnosticBuilder Parser::Diag(const Token &Tok, unsigned DiagID) { in Diag() argument 86 return Diag(Tok.getLocation(), DiagID); in Diag() 110 static bool IsCommonTypo(tok::TokenKind ExpectedTok, const Token &Tok) { in IsCommonTypo() argument 113 return Tok.is(tok::colon) || Tok.is(tok::comma); // : or , for ; in IsCommonTypo() 120 if (Tok.is(ExpectedTok) || Tok.is(tok::code_completion)) { in ExpectAndConsume() 126 if (IsCommonTypo(ExpectedTok, Tok)) { in ExpectAndConsume() 127 SourceLocation Loc = Tok.getLocation(); in ExpectAndConsume() 153 : Diag(Tok, DiagID); in ExpectAndConsume() [all …]
|
H A D | ParseTentative.cpp | 53 switch (Tok.getKind()) { in isCXXDeclarationStatement() 75 switch (Tok.getKind()) { in isCXXDeclarationStatement() 77 IdentifierInfo *II = Tok.getIdentifierInfo(); in isCXXDeclarationStatement() 79 getCurScope(), *II, Tok.getLocation(), SS, /*Template=*/nullptr); in isCXXDeclarationStatement() 203 switch (Tok.getKind()) { in TryConsumeDeclarationSpecifier() 216 if (Tok.isNot(tok::l_paren)) in TryConsumeDeclarationSpecifier() 244 if (Tok.is(tok::annot_cxxscope)) in TryConsumeDeclarationSpecifier() 246 if (Tok.is(tok::identifier)) in TryConsumeDeclarationSpecifier() 248 else if (Tok.is(tok::annot_template_id)) in TryConsumeDeclarationSpecifier() 260 if (getLangOpts().ObjC && Tok.is(tok::less)) in TryConsumeDeclarationSpecifier() [all …]
|
H A D | ParseObjc.cpp | 33 if (Tok.is(tok::kw___attribute)) { in MaybeSkipAttributes() 35 Diag(Tok, diag::err_objc_postfix_attribute_hint) in MaybeSkipAttributes() 38 Diag(Tok, diag::err_objc_postfix_attribute); in MaybeSkipAttributes() 58 if (Tok.is(tok::code_completion)) { in ParseObjCAtDirectives() 64 switch (Tok.getObjCKeywordID()) { in ParseObjCAtDirectives() 72 Diag(Tok.getLocation(), diag::err_objc_unexpected_attr); in ParseObjCAtDirectives() 77 switch (Tok.getObjCKeywordID()) { in ParseObjCAtDirectives() 158 if (Tok.is(tok::code_completion)) { in ParseObjCAtClassDeclaration() 167 ClassNames.push_back(Tok.getIdentifierInfo()); in ParseObjCAtClassDeclaration() 168 ClassLocs.push_back(Tok.getLocation()); in ParseObjCAtClassDeclaration() [all …]
|
H A D | ParseHLSL.cpp | 52 assert((Tok.is(tok::kw_cbuffer) || Tok.is(tok::kw_tbuffer)) && in ParseHLSLBuffer() 54 bool IsCBuffer = Tok.is(tok::kw_cbuffer); in ParseHLSLBuffer() 57 if (!Tok.is(tok::identifier)) { in ParseHLSLBuffer() 58 Diag(Tok, diag::err_expected) << tok::identifier; in ParseHLSLBuffer() 62 IdentifierInfo *Identifier = Tok.getIdentifierInfo(); in ParseHLSLBuffer() 71 Diag(Tok, diag::err_expected) << tok::l_brace; in ParseHLSLBuffer() 79 while (Tok.isNot(tok::r_brace) && Tok.isNot(tok::eof)) { in ParseHLSLBuffer() 106 Token Tok, ArgsVector &ArgExprs, in fixSeparateAttrArgAndNumber() argument 109 StringRef Num = StringRef(Tok.getLiteralData(), Tok.getLength()); in fixSeparateAttrArgAndNumber() 110 SourceLocation EndNumLoc = Tok.getEndLoc(); in fixSeparateAttrArgAndNumber() [all …]
|
H A D | ParseTemplate.cpp | 45 if (Tok.is(tok::kw_template) && NextToken().isNot(tok::less)) { in ParseDeclarationStartingWithTemplate() 81 assert(Tok.isOneOf(tok::kw_export, tok::kw_template) && in ParseTemplateDeclarationOrSpecialization() 125 Diag(Tok.getLocation(), diag::err_expected_template); in ParseTemplateDeclarationOrSpecialization() 164 } while (Tok.isOneOf(tok::kw_export, tok::kw_template)); in ParseTemplateDeclarationOrSpecialization() 170 if (Tok.is(tok::kw_concept)) { in ParseTemplateDeclarationOrSpecialization() 199 if (Tok.is(tok::kw_static_assert)) { in ParseDeclarationAfterTemplate() 201 Diag(Tok.getLocation(), diag::err_templated_invalid_declaration) in ParseDeclarationAfterTemplate() 224 if (Tok.is(tok::kw_using)) in ParseDeclarationAfterTemplate() 238 if (Tok.is(tok::semi)) { in ParseDeclarationAfterTemplate() 276 assert(Tok.is(tok::kw_concept) && in ParseConceptDefinition() [all …]
|
H A D | ParseInit.cpp | 32 switch (Tok.getKind()) { in MayBeDesignationStart() 106 return Tok.is(tok::equal); in MayBeDesignationStart() 170 if (Tok.is(tok::identifier)) { in ParseInitializerWithPotentialDesignator() 171 const IdentifierInfo *FieldName = Tok.getIdentifierInfo(); in ParseInitializerWithPotentialDesignator() 179 assert(Tok.is(tok::colon) && "MayBeDesignationStart not working properly!"); in ParseInitializerWithPotentialDesignator() 190 Tok.getLocation(), DesignatorCompletion.PreferredBaseType, D); in ParseInitializerWithPotentialDesignator() 201 while (Tok.is(tok::period) || Tok.is(tok::l_square)) { in ParseInitializerWithPotentialDesignator() 202 if (Tok.is(tok::period)) { in ParseInitializerWithPotentialDesignator() 206 if (Tok.is(tok::code_completion)) { in ParseInitializerWithPotentialDesignator() 213 if (Tok.isNot(tok::identifier)) { in ParseInitializerWithPotentialDesignator() [all …]
|
H A D | ParseDeclCXX.cpp | 67 assert(Tok.is(tok::kw_namespace) && "Not a namespace!"); in ParseNamespace() 71 if (Tok.is(tok::code_completion)) { in ParseNamespace() 88 if (Tok.is(tok::kw___attribute)) { in ParseNamespace() 93 Diag(Tok.getLocation(), getLangOpts().CPlusPlus17 in ParseNamespace() 105 if (Tok.is(tok::identifier)) { in ParseNamespace() 106 Ident = Tok.getIdentifierInfo(); in ParseNamespace() 108 while (Tok.is(tok::coloncolon) && in ParseNamespace() 116 if (Tok.is(tok::kw_inline)) { in ParseNamespace() 122 Info.Ident = Tok.getIdentifierInfo(); in ParseNamespace() 137 if (Tok.is(tok::equal)) { in ParseNamespace() [all …]
|
H A D | ParseStmt.cpp | 187 tok::TokenKind Kind = Tok.getKind(); in ParseStatementOrDeclarationAfterAttributes() 226 if (Tok.is(tok::semi)) in ParseStatementOrDeclarationAfterAttributes() 232 if (Tok.isNot(tok::identifier)) in ParseStatementOrDeclarationAfterAttributes() 255 SourceLocation DeclStart = Tok.getLocation(), DeclEnd; in ParseStatementOrDeclarationAfterAttributes() 276 if (Tok.is(tok::r_brace)) { in ParseStatementOrDeclarationAfterAttributes() 277 Diag(Tok, diag::err_expected_statement); in ParseStatementOrDeclarationAfterAttributes() 281 switch (Tok.getKind()) { in ParseStatementOrDeclarationAfterAttributes() 285 Tok.setKind(tok::identifier); in ParseStatementOrDeclarationAfterAttributes() 286 Diag(Tok, diag::ext_keyword_as_ident) in ParseStatementOrDeclarationAfterAttributes() 287 << Tok.getIdentifierInfo()->getName() << 0; in ParseStatementOrDeclarationAfterAttributes() [all …]
|
H A D | ParseExpr.cpp | 170 if (Tok.is(tok::code_completion)) { in ParseAssignmentExpression() 173 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseAssignmentExpression() 177 if (Tok.is(tok::kw_throw)) in ParseAssignmentExpression() 179 if (Tok.is(tok::kw_co_yield)) in ParseAssignmentExpression() 189 if (Tok.is(tok::code_completion)) { in ParseConditionalExpression() 192 getCurScope(), PreferredType.get(Tok.getLocation())); in ParseConditionalExpression() 320 getBinOpPrecedence(Tok.getKind(), GreaterThanIsOperator, in ParseConstraintLogicalAndExpression() 324 Tok.isOneOf(tok::period, tok::plusplus, tok::minusminus) || in ParseConstraintLogicalAndExpression() 325 (Tok.is(tok::l_square) && !NextToken().is(tok::l_square))) { in ParseConstraintLogicalAndExpression() 333 Actions.CheckConstraintExpression(E.get(), Tok, &PossibleNonPrimary, in ParseConstraintLogicalAndExpression() [all …]
|
H A D | ParseStmtAsm.cpp | 186 const Token &Tok = AsmToks[TokIndex]; in translateLocation() local 187 Loc = Tok.getLocation(); in translateLocation() 213 LineToks.push_back(Tok); in ParseMSAsmIdentifier() 233 if (Tok.is(tok::kw_this)) { in ParseMSAsmIdentifier() 251 while (Result.isUsable() && Tok.is(tok::period)) { in ParseMSAsmIdentifier() 256 IdentifierInfo *Id = Tok.getIdentifierInfo(); in ParseMSAsmIdentifier() 259 Tok.getLocation()); in ParseMSAsmIdentifier() 264 if (Tok.is(EndOfStream)) { in ParseMSAsmIdentifier() 267 while (LineToks[LineIndex].getLocation() != Tok.getLocation()) { in ParseMSAsmIdentifier() 275 if (Invalid || Tok.is(EndOfStream)) { in ParseMSAsmIdentifier() [all …]
|
H A D | ParseDecl.cpp | 192 assert(Tok.is(tok::kw___attribute) && "Not a GNU attribute list!"); in ParseGNUAttributes() 194 SourceLocation StartLoc = Tok.getLocation(); in ParseGNUAttributes() 197 while (Tok.is(tok::kw___attribute)) { in ParseGNUAttributes() 218 if (Tok.isAnnotation()) in ParseGNUAttributes() 220 if (Tok.is(tok::code_completion)) { in ParseGNUAttributes() 226 IdentifierInfo *AttrName = Tok.getIdentifierInfo(); in ParseGNUAttributes() 232 if (Tok.isNot(tok::l_paren)) { in ParseGNUAttributes() 275 LA->Toks.push_back(Tok); in ParseGNUAttributes() 282 Eof.setLocation(Tok.getLocation()); in ParseGNUAttributes() 284 } while (Tok.is(tok::comma)); in ParseGNUAttributes() [all …]
|
H A D | ParseExprCXX.cpp | 99 TemplateName.setIdentifier(&II, Tok.getLocation()); in CheckForTemplateAndDigraph() 167 if (Tok.is(tok::annot_cxxscope)) { in ParseOptionalCXXScopeSpecifier() 170 Actions.RestoreNestedNameSpecifierAnnotation(Tok.getAnnotationValue(), in ParseOptionalCXXScopeSpecifier() 171 Tok.getAnnotationRange(), in ParseOptionalCXXScopeSpecifier() 189 if (Tok.is(tok::coloncolon)) { in ParseOptionalCXXScopeSpecifier() 208 if (Tok.is(tok::kw___super)) { in ParseOptionalCXXScopeSpecifier() 210 if (!Tok.is(tok::coloncolon)) { in ParseOptionalCXXScopeSpecifier() 211 Diag(Tok.getLocation(), diag::err_expected_coloncolon_after_super); in ParseOptionalCXXScopeSpecifier() 219 Tok.isOneOf(tok::kw_decltype, tok::annot_decltype)) { in ParseOptionalCXXScopeSpecifier() 221 SourceLocation DeclLoc = Tok.getLocation(); in ParseOptionalCXXScopeSpecifier() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Lex/ |
H A D | Pragma.cpp | 108 PragmaIntroducer Introducer, Token &Tok) { in HandlePragma() argument 111 PP.LexUnexpandedToken(Tok); in HandlePragma() 115 = FindHandler(Tok.getIdentifierInfo() ? Tok.getIdentifierInfo()->getName() in HandlePragma() 119 PP.Diag(Tok, diag::warn_pragma_ignored); in HandlePragma() 124 Handler->HandlePragma(PP, Introducer, Tok); in HandlePragma() 139 Token &Tok; member 143 Tokens.push_back(Tok); in lex() 144 Self.Lex(Tok); in lex() 154 Toks[Tokens.size() - 1] = Tok; in revert() 160 Tok = *Tokens.begin(); in revert() [all …]
|
H A D | PPMacroExpansion.cpp | 549 Callbacks->MacroExpands(Info.Tok, Info.MD, Info.Range, in HandleMacroExpandedIdentifier() 777 Token Tok; in ReadMacroCallArgumentList() local 781 LexUnexpandedToken(Tok); in ReadMacroCallArgumentList() 782 assert(Tok.is(tok::l_paren) && "Error computing l-paren-ness?"); in ReadMacroCallArgumentList() 794 while (Tok.isNot(tok::r_paren)) { in ReadMacroCallArgumentList() 795 if (ContainsCodeCompletionTok && Tok.isOneOf(tok::eof, tok::eod)) in ReadMacroCallArgumentList() 798 assert(Tok.isOneOf(tok::l_paren, tok::comma) && in ReadMacroCallArgumentList() 802 SourceLocation ArgStartLoc = Tok.getLocation(); in ReadMacroCallArgumentList() 811 LexUnexpandedToken(Tok); in ReadMacroCallArgumentList() 813 if (Tok.isOneOf(tok::eof, tok::eod)) { // "#if f(<eof>" & "#if f(\n" in ReadMacroCallArgumentList() [all …]
|
H A D | TokenConcatenation.cpp | 47 bool TokenConcatenation::IsIdentifierStringPrefix(const Token &Tok) const { in IsIdentifierStringPrefix() 50 if (!Tok.needsCleaning()) { in IsIdentifierStringPrefix() 51 if (Tok.getLength() < 1 || Tok.getLength() > 3) in IsIdentifierStringPrefix() 54 const char *Ptr = SM.getCharacterData(SM.getSpellingLoc(Tok.getLocation())); in IsIdentifierStringPrefix() 55 return IsStringPrefix(StringRef(Ptr, Tok.getLength()), in IsIdentifierStringPrefix() 59 if (Tok.getLength() < 256) { in IsIdentifierStringPrefix() 62 unsigned length = PP.getSpelling(Tok, TokPtr); in IsIdentifierStringPrefix() 66 return IsStringPrefix(StringRef(PP.getSpelling(Tok)), LangOpts.CPlusPlus11); in IsIdentifierStringPrefix() 128 static char GetFirstChar(const Preprocessor &PP, const Token &Tok) { in GetFirstChar() argument 129 if (IdentifierInfo *II = Tok.getIdentifierInfo()) { in GetFirstChar() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | QualifierAlignmentFixer.cpp | 73 First->Tok.getEndLoc()); in removeToken() 81 auto Range = CharSourceRange::getCharRange(First->Tok.getLocation(), in insertQualifierAfter() 82 First->Tok.getEndLoc()); in insertQualifierAfter() 95 First->Tok.getEndLoc()); in insertQualifierBefore() 133 auto *Tok = Begin; in rotateTokens() local 134 while (Tok != End) { in rotateTokens() 138 NewText += Tok->TokenText; in rotateTokens() 139 Tok = Tok->Next; in rotateTokens() 150 Last->Tok.getEndLoc()); in rotateTokens() 156 isConfiguredQualifier(const FormatToken *const Tok, in isConfiguredQualifier() argument [all …]
|
H A D | WhitespaceManager.cpp | 34 WhitespaceManager::Change::Change(const FormatToken &Tok, in Change() argument 42 : Tok(&Tok), CreateReplacement(CreateReplacement), in Change() 53 void WhitespaceManager::replaceWhitespace(FormatToken &Tok, unsigned Newlines, in replaceWhitespace() argument 57 if (Tok.Finalized || (Tok.MacroCtx && Tok.MacroCtx->Role == MR_ExpandedArg)) in replaceWhitespace() 59 Tok.setDecision((Newlines > 0) ? FD_Break : FD_Continue); in replaceWhitespace() 60 Changes.push_back(Change(Tok, /*CreateReplacement=*/true, Tok.WhitespaceRange, in replaceWhitespace() 62 IsAligned, InPPDirective && !Tok.IsFirst, in replaceWhitespace() 66 void WhitespaceManager::addUntouchableToken(const FormatToken &Tok, in addUntouchableToken() argument 68 if (Tok.Finalized || (Tok.MacroCtx && Tok.MacroCtx->Role == MR_ExpandedArg)) in addUntouchableToken() 70 Changes.push_back(Change(Tok, /*CreateReplacement=*/false, in addUntouchableToken() [all …]
|
H A D | TokenAnnotator.cpp | 27 static bool mustBreakAfterAttributes(const FormatToken &Tok, in mustBreakAfterAttributes() argument 33 return Tok.NewlinesBefore > 0; in mustBreakAfterAttributes() 59 static bool canBeObjCSelectorComponent(const FormatToken &Tok) { in canBeObjCSelectorComponent() argument 60 return Tok.Tok.getIdentifierInfo(); in canBeObjCSelectorComponent() 81 static bool isKeywordWithCondition(const FormatToken &Tok) { in isKeywordWithCondition() argument 82 return Tok.isOneOf(tok::kw_if, tok::kw_for, tok::kw_while, tok::kw_switch, in isKeywordWithCondition() 87 static bool isCppAttribute(bool IsCpp, const FormatToken &Tok) { in isCppAttribute() argument 88 if (!IsCpp || !Tok.startsSequence(tok::l_square, tok::l_square)) in isCppAttribute() 91 if (Tok.Previous && Tok.Previous->is(tok::at)) in isCppAttribute() 93 const FormatToken *AttrTok = Tok.Next->Next; in isCppAttribute() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | CommentParser.cpp | 59 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer() local 61 Pos.BufferStart = Tok.getText().begin(); in setupBuffer() 62 Pos.BufferEnd = Tok.getText().end(); in setupBuffer() 64 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 124 if (P.Tok.is(tok::newline)) { in addToken() 126 Token Newline = P.Tok; in addToken() 128 if (P.Tok.isNot(tok::text)) { in addToken() 134 if (P.Tok.isNot(tok::text)) { in addToken() 139 Toks.push_back(P.Tok); in addToken() 178 bool lexType(Token &Tok) { in lexType() argument [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | COFFModuleDefinition.cpp | 151 } while (Tok.K != Eof); in parse() 158 Tok = Lex.lex(); in read() 161 Tok = Stack.back(); in read() 167 if (Tok.K != Identifier || Tok.Value.getAsInteger(10, *I)) in readAsInt() 174 if (Tok.K != Expected) in expect() 179 void unget() { Stack.push_back(Tok); } in unget() 183 switch (Tok.K) { in parseOne() 189 if (Tok.K != Identifier) { in parseOne() 202 bool IsDll = Tok.K == KwLibrary; // Check before parseName. in parseOne() 222 return createError("unknown directive: " + Tok.Value); in parseOne() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Tooling/Inclusions/ |
H A D | HeaderIncludes.cpp | 49 Token Tok; in getOffsetAfterTokenSequence() local 51 Lex.LexFromRawLexer(Tok); in getOffsetAfterTokenSequence() 52 return GetOffsetAfterSequence(SM, Lex, Tok); in getOffsetAfterTokenSequence() 60 Lexer &Lex, StringRef Name, Token &Tok, in checkAndConsumeDirectiveWithName() argument 62 bool Matched = Tok.is(tok::hash) && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 63 Tok.is(tok::raw_identifier) && in checkAndConsumeDirectiveWithName() 64 Tok.getRawIdentifier() == Name && !Lex.LexFromRawLexer(Tok) && in checkAndConsumeDirectiveWithName() 65 Tok.is(tok::raw_identifier) && in checkAndConsumeDirectiveWithName() 66 (!RawIDName || Tok.getRawIdentifier() == *RawIDName); in checkAndConsumeDirectiveWithName() 68 Lex.LexFromRawLexer(Tok); in checkAndConsumeDirectiveWithName() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | PrintPreprocessedOutput.cpp | 194 void HandleWhitespaceBeforeTok(const Token &Tok, bool RequireSpace, 209 bool MoveToLine(const Token &Tok, bool RequireStartOfLine) { in MoveToLine() argument 210 PresumedLoc PLoc = SM.getPresumedLoc(Tok.getLocation()); in MoveToLine() 213 Tok.isAtStartOfLine() && PLoc.isValid() && PLoc.getLine() == 1; in MoveToLine() 227 const Token &Tok) { in AvoidConcat() argument 228 return ConcatInfo.AvoidConcat(PrevPrevTok, PrevTok, Tok); in AvoidConcat() 755 void PrintPPOutputPPCallbacks::HandleWhitespaceBeforeTok(const Token &Tok, in HandleWhitespaceBeforeTok() argument 760 if (Tok.is(tok::eof) || in HandleWhitespaceBeforeTok() 761 (Tok.isAnnotation() && !Tok.is(tok::annot_header_unit) && in HandleWhitespaceBeforeTok() 762 !Tok.is(tok::annot_module_begin) && !Tok.is(tok::annot_module_end) && in HandleWhitespaceBeforeTok() [all …]
|