[llvm-dev] -Wmisleading-indentation violations

Dan Liew via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 2 10:52:28 PDT 2016

Whilst I'm here I thought I would just do a clean build of LLVM and
Clang to see if any more warnings of this sort appeared. Only one
other popped up.


In member function ‘void
bool, const clang::Stmt*, clang::ento::CheckerContext&) const’:

warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]

       if (state->isTainted(rawOffset.getByteOffset()))


note: ...this statement, but the latter is misleadingly indented as if
it is guarded by the ‘if’




More information about the llvm-dev mailing list