clang  14.0.0git
Namespaces | Macros | Functions
QualifierAlignmentFixer.cpp File Reference
#include "QualifierAlignmentFixer.h"
#include "FormatToken.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Regex.h"
#include <algorithm>
Include dependency graph for QualifierAlignmentFixer.cpp:

Go to the source code of this file.

Namespaces

 clang
 
 clang::format
 

Macros

#define DEBUG_TYPE   "format-qualifier-alignment-fixer"
 

Functions

static void clang::format::replaceToken (const SourceManager &SourceMgr, tooling::Replacements &Fixes, const CharSourceRange &Range, std::string NewText)
 
static void clang::format::removeToken (const SourceManager &SourceMgr, tooling::Replacements &Fixes, const FormatToken *First)
 
static void clang::format::insertQualifierAfter (const SourceManager &SourceMgr, tooling::Replacements &Fixes, const FormatToken *First, const std::string &Qualifier)
 
static void clang::format::insertQualifierBefore (const SourceManager &SourceMgr, tooling::Replacements &Fixes, const FormatToken *First, const std::string &Qualifier)
 
static bool clang::format::endsWithSpace (const std::string &s)
 
static bool clang::format::startsWithSpace (const std::string &s)
 
static void clang::format::rotateTokens (const SourceManager &SourceMgr, tooling::Replacements &Fixes, const FormatToken *First, const FormatToken *Last, bool Left)
 

Detailed Description

This file implements LeftRightQualifierAlignmentFixer, a TokenAnalyzer that enforces either left or right const depending on the style.

Definition in file QualifierAlignmentFixer.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "format-qualifier-alignment-fixer"

Definition at line 22 of file QualifierAlignmentFixer.cpp.