|
clang
5.0.0
|
This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines. More...
#include "UnwrappedLineParser.h"#include "llvm/ADT/STLExtras.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Classes | |
| class | clang::format::FormatTokenSource |
| class | clang::format::ScopedLineState |
| class | clang::format::CompoundStatementIndenter |
Namespaces | |
| clang | |
| /file This file defines classes for searching and anlyzing source code clones. | |
| clang::format | |
Macros | |
| #define | DEBUG_TYPE "format-parser" |
Functions | |
| static bool | clang::format::isGoogScope (const UnwrappedLine &Line) |
| static bool | clang::format::isIIFE (const UnwrappedLine &Line, const AdditionalKeywords &Keywords) |
| static bool | clang::format::ShouldBreakBeforeBrace (const FormatStyle &Style, const FormatToken &InitialToken) |
| static bool | clang::format::tokenCanStartNewLine (const clang::Token &Tok) |
| static bool | clang::format::mustBeJSIdent (const AdditionalKeywords &Keywords, const FormatToken *FormatTok) |
| static bool | clang::format::mustBeJSIdentOrValue (const AdditionalKeywords &Keywords, const FormatToken *FormatTok) |
| static bool | clang::format::isJSDeclOrStmt (const AdditionalKeywords &Keywords, const FormatToken *FormatTok) |
| static LLVM_ATTRIBUTE_UNUSED void | clang::format::printDebugInfo (const UnwrappedLine &Line, StringRef Prefix="") |
| static bool | clang::format::continuesLineCommentSection (const FormatToken &FormatTok, const UnwrappedLine &Line, llvm::Regex &CommentPragmasRegex) |
This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.
Definition in file UnwrappedLineParser.cpp.
| #define DEBUG_TYPE "format-parser" |
Definition at line 21 of file UnwrappedLineParser.cpp.
| UnwrappedLine& Line |
Definition at line 54 of file UnwrappedLineParser.cpp.
| int Position |
Definition at line 222 of file UnwrappedLineParser.cpp.
Referenced by clang::Sema::ActOnNonTypeTemplateParameter(), clang::Sema::ActOnTemplateTemplateParameter(), clang::comments::Sema::actOnTParamCommandParamNameArg(), clang::Sema::ActOnTypeParameter(), clang::TemplateParmPosition::getIndex(), clang::TemplateParmPosition::getPosition(), clang::tooling::Replacements::getShiftedCodePosition(), clang::comments::TextTokenRetokenizer::lexDelimitedSeq(), clang::comments::TextTokenRetokenizer::lexWord(), clang::Preprocessor::SetCodeCompletionPoint(), and clang::TemplateParmPosition::setPosition().
| unsigned PreviousLineLevel |
Definition at line 137 of file UnwrappedLineParser.cpp.
| FormatToken* PreviousToken |
Definition at line 141 of file UnwrappedLineParser.cpp.
Referenced by clang::format::continuesLineCommentSection().
| FormatTokenSource* PreviousTokenSource |
Definition at line 138 of file UnwrappedLineParser.cpp.
| FormatToken*& ResetToken |
Definition at line 136 of file UnwrappedLineParser.cpp.
| std::vector<bool>& Stack |
Definition at line 55 of file UnwrappedLineParser.cpp.
Referenced by clang::Sema::PragmaStack< ValueType >::Act(), clang::Sema::ActOnEndOfTranslationUnit(), clang::Sema::ActOnPragmaMSSeg(), clang::Sema::AddPushedVisibilityAttribute(), clang::ast_matchers::AST_MATCHER_P(), clang::Sema::CheckCompleteVariableDeclaration(), checkForRecursiveFunctionCall(), clang::CodeGen::CodeGenFunction::EmitAutoVarAlloca(), clang::CodeGen::CodeGenModule::EmitTopLevelDecl(), hasThrowOutNonThrowingFunc(), IsCXXRecordForMappable(), clang::CompilerInstance::loadModuleFile(), clang::ASTReader::makeModuleVisible(), clang::NestedNameSpecifierLocBuilder::MakeTrivial(), clang::Module::markUnavailable(), clang::Sema::PopPragmaVisibility(), and PushPragmaVisibility().
| FormatToken* Token |
Definition at line 140 of file UnwrappedLineParser.cpp.
Referenced by clang::tooling::addTargetAndModeForProgramName(), clang::MacroArgs::create(), clang::MacroArgs::getPreExpArgument(), and NormalizeLine().
| ArrayRef<FormatToken *> Tokens |
Definition at line 221 of file UnwrappedLineParser.cpp.
Referenced by clang::comments::Sema::checkDeprecatedCommand(), clang::format::FormatToken::endsSequence(), clang::format::AnnotatedLine::endsWith(), clang::Preprocessor::getLastMacroWithSpelling(), clang::format::TokenAnalyzer::process(), clang::format::FormatToken::startsSequence(), and clang::format::AnnotatedLine::startsWith().
| FormatTokenSource*& TokenSource |
Definition at line 135 of file UnwrappedLineParser.cpp.
Referenced by clang::format::UnwrappedLineParser::parse().
1.8.6