clang-tools 19.0.0git
Namespaces | Functions
MacroParenthesesCheck.cpp File Reference
#include "MacroParenthesesCheck.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"

Go to the source code of this file.

Namespaces

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

Functions

static bool clang::tidy::bugprone::isSurroundedLeft (const Token &T)
 Is argument surrounded properly with parentheses/braces/squares/commas?
 
static bool clang::tidy::bugprone::isSurroundedRight (const Token &T)
 Is argument surrounded properly with parentheses/braces/squares/commas?
 
static bool clang::tidy::bugprone::isKeyword (const Token &T)
 Is given TokenKind a keyword?
 
static bool clang::tidy::bugprone::isWarnOp (const Token &T)
 Warning is written when one of these operators are not within parentheses.
 
static bool clang::tidy::bugprone::isVarDeclKeyword (const Token &T)
 Is given Token a keyword that is used in variable declarations?
 
static bool clang::tidy::bugprone::possibleVarDecl (const MacroInfo *MI, const Token *Tok)
 Is there a possible variable declaration at Tok?