clang API Documentation
Warn on logical operator errors in CFGBuilder. More...


Public Member Functions | |
| LogicalErrorHandler (Sema &S) | |
| void | compareAlwaysTrue (const BinaryOperator *B, bool isAlwaysTrue) |
| void | compareBitwiseEquality (const BinaryOperator *B, bool isAlwaysTrue) |
Static Public Member Functions | |
| static bool | HasMacroID (const Expr *E) |
Warn on logical operator errors in CFGBuilder.
Definition at line 121 of file AnalysisBasedWarnings.cpp.
| LogicalErrorHandler::LogicalErrorHandler | ( | Sema & | S | ) | [inline] |
Definition at line 125 of file AnalysisBasedWarnings.cpp.
| void LogicalErrorHandler::compareAlwaysTrue | ( | const BinaryOperator * | B, |
| bool | isAlwaysTrue | ||
| ) | [inline, virtual] |
Reimplemented from clang::CFGCallback.
Definition at line 141 of file AnalysisBasedWarnings.cpp.
References clang::Sema::Diag(), clang::BinaryOperator::getExprLoc(), clang::Stmt::getSourceRange(), and S.
| void LogicalErrorHandler::compareBitwiseEquality | ( | const BinaryOperator * | B, |
| bool | isAlwaysTrue | ||
| ) | [inline, virtual] |
Reimplemented from clang::CFGCallback.
Definition at line 150 of file AnalysisBasedWarnings.cpp.
References clang::Sema::Diag(), clang::BinaryOperator::getExprLoc(), clang::Stmt::getSourceRange(), and S.
| static bool LogicalErrorHandler::HasMacroID | ( | const Expr * | E | ) | [inline, static] |
Definition at line 127 of file AnalysisBasedWarnings.cpp.
References clang::Stmt::children(), clang::Expr::getExprLoc(), and clang::SourceLocation::isMacroID().