clang 22.0.0git
Format Directory Reference
Directory dependency graph for Format:

Files

 
AffectedRangeManager.cpp
 This file implements AffectRangeManager class.
 
AffectedRangeManager.h
 AffectedRangeManager class manages affected ranges in the code.
 
BreakableToken.cpp
 Contains implementation of BreakableToken class and classes derived from it.
 
BreakableToken.h
 Declares BreakableToken, BreakableStringLiteral, BreakableComment, BreakableBlockComment and BreakableLineCommentSection classes, that contain token type-specific logic to break long lines in tokens and reflow content between tokens.
 
ContinuationIndenter.cpp
 This file implements the continuation indenter.
 
ContinuationIndenter.h
 This file implements an indenter that manages the indentation of continuations.
 
DefinitionBlockSeparator.cpp
 This file implements DefinitionBlockSeparator, a TokenAnalyzer that inserts or removes empty lines separating definition blocks like classes, structs, functions, enums, and namespaces in between.
 
DefinitionBlockSeparator.h
 This file declares DefinitionBlockSeparator, a TokenAnalyzer that inserts or removes empty lines separating definition blocks like classes, structs, functions, enums, and namespaces in between.
 
Encoding.h
 Contains functions for text encoding manipulation.
 
Format.cpp
 This file implements functions declared in Format.h.
 
FormatInternal.h
 This file declares Format APIs to be used internally by the formatting library implementation.
 
FormatToken.cpp
 This file implements specific functions of FormatTokens and their roles.
 
FormatToken.h
 This file contains the declaration of the FormatToken, a wrapper around Token with additional information related to formatting.
 
FormatTokenLexer.cpp
 This file implements FormatTokenLexer, which tokenizes a source file into a FormatToken stream suitable for ClangFormat.
 
FormatTokenLexer.h
 This file contains FormatTokenLexer, which tokenizes a source file into a token stream suitable for ClangFormat.
 
FormatTokenSource.h
 This file defines the FormatTokenSource interface, which provides a token stream as well as the ability to manipulate the token stream.
 
IntegerLiteralSeparatorFixer.cpp
 This file implements IntegerLiteralSeparatorFixer that fixes C++ integer literal separators.
 
IntegerLiteralSeparatorFixer.h
 This file declares IntegerLiteralSeparatorFixer that fixes C++ integer literal separators.
 
MacroCallReconstructor.cpp
 This file contains the implementation of MacroCallReconstructor, which fits an reconstructed macro call to a parsed set of UnwrappedLines.
 
MacroExpander.cpp
 This file contains the implementation of MacroExpander, which handles macro configuration and expansion while formatting.
 
Macros.h
 This file contains the main building blocks of macro support in clang-format.
 
MatchFilePath.cpp
 This file implements the functionality of matching a file path name to a pattern, similar to the POSIX fnmatch() function.
 
MatchFilePath.h
 
NamespaceEndCommentsFixer.cpp
 This file implements NamespaceEndCommentsFixer, a TokenAnalyzer that fixes namespace end comments.
 
NamespaceEndCommentsFixer.h
 This file declares NamespaceEndCommentsFixer, a TokenAnalyzer that fixes namespace end comments.
 
NumericLiteralCaseFixer.cpp
 This file implements NumericLiteralCaseFixer that standardizes character case within numeric literals.
 
NumericLiteralCaseFixer.h
 This file declares NumericLiteralCaseFixer that standardizes character case within numeric literals.
 
NumericLiteralInfo.cpp
 This file implements the functionality of getting information about a numeric literal string, including 0-based positions of the base letter, the decimal/hexadecimal point, the exponent letter, and the suffix, or npos if absent.
 
NumericLiteralInfo.h
 
ObjCPropertyAttributeOrderFixer.cpp
 This file implements ObjCPropertyAttributeOrderFixer, a TokenAnalyzer that adjusts the order of attributes in an ObjC @property(...) declaration, depending on the style.
 
ObjCPropertyAttributeOrderFixer.h
 This file declares ObjCPropertyAttributeOrderFixer, a TokenAnalyzer that adjusts the order of attributes in an ObjC @property(...) declaration, depending on the style.
 
QualifierAlignmentFixer.cpp
 This file implements QualifierAlignmentFixer, a TokenAnalyzer that enforces either left or right const depending on the style.
 
QualifierAlignmentFixer.h
 This file declares QualifierAlignmentFixer, a TokenAnalyzer that enforces either east or west const depending on the style.
 
SortJavaScriptImports.cpp
 This file implements a sort operation for JavaScript ES6 imports.
 
SortJavaScriptImports.h
 This file implements a sorter for JavaScript ES6 imports.
 
TokenAnalyzer.cpp
 This file implements an abstract TokenAnalyzer and associated helper classes.
 
TokenAnalyzer.h
 This file declares an abstract TokenAnalyzer, and associated helper classes.
 
TokenAnnotator.cpp
 This file implements a token annotator, i.e.
 
TokenAnnotator.h
 This file implements a token annotator, i.e.
 
UnwrappedLineFormatter.cpp
 
UnwrappedLineFormatter.h
 Implements a combinatorial exploration of all the different linebreaks unwrapped lines can be formatted in.
 
UnwrappedLineParser.cpp
 This file contains the implementation of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.
 
UnwrappedLineParser.h
 This file contains the declaration of the UnwrappedLineParser, which turns a stream of tokens into UnwrappedLines.
 
UsingDeclarationsSorter.cpp
 This file implements UsingDeclarationsSorter, a TokenAnalyzer that sorts consecutive using declarations.
 
UsingDeclarationsSorter.h
 This file declares UsingDeclarationsSorter, a TokenAnalyzer that sorts consecutive using declarations.
 
WhitespaceManager.cpp
 This file implements WhitespaceManager class.
 
WhitespaceManager.h
 WhitespaceManager class manages whitespace around tokens and their replacements.