clang-tools 20.0.0git
Classes | Namespaces | Functions
BracesAroundStatement.h File Reference

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

#include "clang/AST/Stmt.h"
#include "clang/Basic/Diagnostic.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"

Go to the source code of this file.

Classes

struct  clang::tidy::utils::BraceInsertionHints
 A provider of fix-it hints to insert opening and closing braces. More...
 

Namespaces

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

Functions

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.h.