[llvm-dev] -Wmisleading-indentation violations

Liu, Yaxun (Sam) via llvm-dev llvm-dev at lists.llvm.org
Thu Jun 2 07:37:52 PDT 2016


/home/dsl11/dev/llvm-upstream/src/tools/clang/lib/Basic/Targets.cpp:
In member function ‘virtual void
{anonymous}::AMDGPUTargetInfo::setSupportedOpenCLOpts()’:

/home/dsl11/dev/llvm-upstream/src/tools/clang/lib/Basic/Targets.cpp:2129:6:
warning: this ‘if’ clause does not guard... [-Wmisleading-indentat

ion]

      if (GPU >= GK_SOUTHERN_ISLANDS)

      ^~

/home/dsl11/dev/llvm-upstream/src/tools/clang/lib/Basic/Targets.cpp:2131:8:
note: ...this statement, but the latter is misleadingly indented a

s if it is guarded by the ‘if’

        Opts.cl_khr_int64_base_atomics = 1;

        ^~~~
```
This issue has been taken care of by http://reviews.llvm.org/D20388 . Thanks.

Sam


More information about the llvm-dev mailing list