clang  13.0.0git
Classes | Namespaces | Functions
BreakableToken.h File Reference
#include "Encoding.h"
#include "TokenAnnotator.h"
#include "WhitespaceManager.h"
#include "llvm/ADT/StringSet.h"
#include "llvm/Support/Regex.h"
#include <utility>
Include dependency graph for BreakableToken.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  clang::format::BreakableToken
 Base class for tokens / ranges of tokens that can allow breaking within the tokens - for example, to avoid whitespace beyond the column limit, or to reflow text. More...
class  clang::format::BreakableStringLiteral
class  clang::format::BreakableComment
class  clang::format::BreakableBlockComment
class  clang::format::BreakableLineCommentSection




bool clang::format::switchesFormatting (const FormatToken &Token)
 Checks if Token switches formatting, like /* clang-format off *‍/. More...

Detailed Description

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.

Definition in file BreakableToken.h.