clang-tools 19.0.0git
Namespaces | Functions
BracesAroundStatement.cpp File Reference

This file provides utilities to put braces around a statement. More...

#include "BracesAroundStatement.h"
#include "../utils/LexerUtils.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/CharInfo.h"
#include "clang/Basic/LangOptions.h"
#include "clang/Lex/Lexer.h"

Go to the source code of this file.

Namespaces

namespace  clang
 ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
 
namespace  clang::tidy
 
namespace  clang::tidy::utils
 

Functions

static tok::TokenKind clang::tidy::utils::getTokenKind (SourceLocation Loc, const SourceManager &SM, const LangOptions &LangOpts)
 
static SourceLocation clang::tidy::utils::findEndLocation (const Stmt &S, const SourceManager &SM, const LangOptions &LangOpts)
 
BraceInsertionHints clang::tidy::utils::getBraceInsertionsHints (const Stmt *const S, const LangOptions &LangOpts, const SourceManager &SM, SourceLocation StartLoc, SourceLocation EndLocHint=SourceLocation())
 Create fix-it hints for braces that wrap the given statement when applied.
 

Detailed Description

This file provides utilities to put braces around a statement.

Definition in file BracesAroundStatement.cpp.