clang-tools 24.0.0git
UseIfConstevalCheck.cpp File Reference
#include "UseIfConstevalCheck.h"
#include "../utils/BracesAroundStatement.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Basic/CharInfo.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::modernize

Functions

static std::optional< SourceRange > clang::tidy::modernize::getHeaderRange (const IfStmt *If, const SourceManager &SM, const LangOptions &LangOpts)
static std::optional< BraceFix > clang::tidy::modernize::getBraceFix (const Stmt *S, const LangOptions &LangOpts, const SourceManager &SM, SourceLocation StartLoc, SourceLocation EndLocHint=SourceLocation())
static bool clang::tidy::modernize::needsLeadingSpaceBeforeConsteval (SourceLocation LParenLoc, const SourceManager &SM)