|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
tools/clang/include/clang/Lex/Preprocessor.h 1401 while (Result.getKind() == tok::comment);
1421 while (Result.getKind() == tok::comment);
tools/clang/lib/Format/AffectedRangeManager.cpp 137 Line->First->is(tok::comment) && Line->First->Next == nullptr &&
139 PreviousLine->Affected && PreviousLine->Last->is(tok::comment);
tools/clang/lib/Format/ContinuationIndenter.cpp 488 Previous.is(tok::l_brace) && !Current.isOneOf(tok::r_brace, tok::comment))
659 if (!Current.is(tok::comment) && P &&
682 if (Current.isNot(tok::comment) && Previous.is(tok::l_paren) &&
689 } else if (!Current.isOneOf(tok::comment, tok::caret) &&
1070 !Current.isOneOf(tok::colon, tok::comment))
1170 if (Current.isNot(tok::comment) && Previous &&
1201 else if (!Current.isOneOf(tok::comment, tok::identifier, tok::hash) &&
tools/clang/lib/Format/Format.cpp 1496 if (Tok->isNot(tok::comment))
1587 if (!Res->is(tok::comment) &&
tools/clang/lib/Format/FormatToken.h 433 return is(tok::comment) &&
489 while (Tok && Tok->is(tok::comment))
497 while (Tok && Tok->is(tok::comment))
539 if (is(tok::comment))
557 if (is(tok::comment) && Next)
563 if (is(tok::comment) && Next)
569 if (is(tok::comment) && Previous)
576 if (is(tok::comment) && Previous)
tools/clang/lib/Format/FormatTokenLexer.cpp 372 if ((*I)->isNot(tok::comment)) {
498 HashToken->Tok.setKind(tok::comment);
708 FormatTok->is(tok::comment) && FormatTok->TokenText.startswith("//")) {
754 if (FormatTok->Tok.is(tok::comment)) {
852 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format on" ||
859 if (Tok.is(tok::comment) && (Tok.TokenText == "// clang-format off" ||
tools/clang/lib/Format/NamespaceEndCommentsFixer.cpp 85 return RBraceTok->Next && RBraceTok->Next->is(tok::comment);
238 if (EndCommentNextTok && EndCommentNextTok->is(tok::comment))
tools/clang/lib/Format/SortJavaScriptImports.cpp 216 while (Tok && Tok->is(tok::comment))
tools/clang/lib/Format/TokenAnnotator.cpp 721 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) {
1016 if (CurrentToken->isNot(tok::comment) &&
1427 } else if (Current.is(tok::comment)) {
1915 (Current->is(tok::comment) && NextNonComment &&
1946 while (Previous->is(tok::comment) && Previous->Previous)
2009 if (!Tok->is(tok::comment)) {
2215 if (Parameter->isOneOf(tok::comment, tok::r_brace))
2303 Current->isOneOf(tok::comment, tok::string_literal)) {
2381 if (Left.is(tok::comment))
2950 if (Right.is(tok::coloncolon) && !Left.isOneOf(tok::l_brace, tok::comment))
3065 if (Right.is(tok::comment))
3527 tok::kw_class, tok::kw_struct, tok::comment) ||
tools/clang/lib/Format/UnwrappedLineFormatter.cpp 85 if ((!Line.First->is(tok::comment) || IndentForLevel[Line.Level] == -1) &&
234 if (Tok && Tok->is(tok::comment))
481 if (Line->First->is(tok::comment)) {
491 if (Line->First->isNot(tok::comment) || Level != Line->Level)
496 if (Line->Last->is(tok::comment))
786 if (Previous.is(tok::comment))
tools/clang/lib/Format/UnwrappedLineParser.cpp 60 return FormatTok.is(tok::comment) && !FormatTok.TokenText.startswith("/*");
337 case tok::comment:
360 } while (Next && Next->is(tok::comment));
411 } while (NextTok->is(tok::comment));
763 if (!Line.Tokens.front().Tok->is(tok::comment)) {
819 if (!Line.Tokens.front().Tok->isOneOf(tok::comment, tok::hash)) {
1353 (TokenCount == 2 && Line->Tokens.front().Tok->is(tok::comment))) {
2744 if (!FormatTok->Tok.is(tok::comment)) {
tools/clang/lib/Format/UsingDeclarationsSorter.cpp 201 FirstTok->is(tok::comment) ? FirstTok->getNextNonComment() : FirstTok;
tools/clang/lib/Format/WhitespaceManager.cpp 168 (Changes[i].IsInsideToken && Changes[i].Tok->is(tok::comment))) &&
169 Changes[i - 1].Tok->is(tok::comment) &&
205 Changes.back().IsTrailingComment = Changes.back().Tok->is(tok::comment);
216 if (Change.Tok->is(tok::comment)) {
262 Changes[PreviousNonComment].Tok->is(tok::comment))
597 if (Next->is(tok::comment))
650 if (Changes[j].Tok->is(tok::comment))
tools/clang/lib/Frontend/PrintPreprocessedOutput.cpp 740 if (DropComments && Tok.is(tok::comment)) {
799 if (Tok.getKind() == tok::comment || Tok.getKind() == tok::unknown)
807 if (Tok.getKind() == tok::comment || Tok.getKind() == tok::unknown)
tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp 52 if (!ReturnComment && RawTokens[CurTok].is(tok::comment))
178 if (RawTok.is(tok::comment)) {
tools/clang/lib/Frontend/Rewrite/RewriteTest.cpp 27 if (I->isNot(tok::comment)) continue;
tools/clang/lib/Frontend/VerifyDiagnosticConsumer.cpp 819 Tok.setKind(tok::comment);
824 if (!Tok.is(tok::comment)) continue;
tools/clang/lib/Lex/Lexer.cpp 644 if (TheTok.getKind() == tok::comment) {
2388 FormTokenWithChars(Result, CurPtr, tok::comment);
2404 Result.setKind(tok::comment);
2630 FormTokenWithChars(Result, CurPtr, tok::comment);
tools/clang/lib/Lex/MacroInfo.cpp 50 assert((macroStart.isFileID() || firstToken.is(tok::comment)) &&
52 assert((macroEnd.isFileID() || lastToken.is(tok::comment)) &&
tools/clang/lib/Lex/ModuleMap.cpp 1596 case tok::comment:
tools/clang/lib/Lex/PPDirectives.cpp 355 while (Tmp.is(tok::comment)) // Skip comments in -C mode.
tools/clang/lib/Lex/PPMacroExpansion.cpp 835 } else if (Tok.is(tok::comment) && !KeepMacroComments) {
1162 } while (Tok.getKind() == tok::comment);
tools/clang/lib/Lex/TokenLexer.cpp 65 assert((Tokens[0].getLocation().isFileID() || Tokens[0].is(tok::comment)) &&
677 if (Tok.is(tok::comment)) {
tools/clang/lib/Rewrite/HTMLRewrite.cpp 481 case tok::comment:
tools/clang/lib/Tooling/Inclusions/HeaderIncludes.cpp 70 while (Tok.is(tok::comment))
tools/clang/tools/clang-refactor/TestSupport.cpp 321 if (Tok.isNot(tok::comment))
tools/clang/tools/extra/clang-tidy/bugprone/ArgumentCommentCheck.cpp 91 if (Tok.is(tok::comment)) {
114 if (Tok.isNot(tok::comment))
tools/clang/tools/extra/clang-tidy/readability/BracesAroundStatementsCheck.cpp 45 if (TokKind == tok::NUM_TOKENS || TokKind != tok::comment)
90 if (TokKind != tok::comment) {
tools/clang/tools/extra/clang-tidy/readability/NamespaceCommentCheck.cpp 139 if (Tok.is(tok::comment) && NextTokenIsOnSameLine) {
tools/clang/tools/extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp 311 if (Tok.is(tok::TokenKind::comment) || Tok.is(tok::TokenKind::hash))
tools/clang/tools/extra/clang-tidy/utils/LexerUtils.cpp 25 (!SkipComments || !Token.is(tok::comment))) {
tools/clang/tools/extra/clangd/Diagnostics.cpp 107 if (!Lexer::getRawToken(Loc, Tok, M, L, true) && Tok.isNot(tok::comment)) {
tools/clang/tools/extra/clangd/Selection.cpp 45 if (Tok.kind() == tok::comment || Tok.kind() == tok::semi)
tools/clang/tools/libclang/CIndex.cpp 6761 } else if (Tok.is(tok::comment)) {
tools/lldb/source/Plugins/Language/ClangCommon/ClangHighlighter.cpp 53 if (token.is(tok::comment)) {