[cfe-dev] Fwd: indent wrong in ASTImporter.cpp

Liu Xin via cfe-dev cfe-dev at lists.llvm.org
Sat Mar 19 18:40:58 PDT 2016


hi, list

I use gcc to compile clang. gcc gives us this warning.


/home/xliu/MyDevel/llvm-repo/llvm/tools/clang/lib/AST/ASTImporter.cpp:622:7:
warning: statement is indented as if it were guarded by...
[-Wmisleading-indentation]
       if (Function1->getExtInfo() != Function2->getExtInfo())
       ^~
/home/xliu/MyDevel/llvm-repo/llvm/tools/clang/lib/AST/ASTImporter.cpp:619:5:
note: ...this ‘if’ clause, but it is not
     if (!IsStructurallyEquivalent(Context, Function1->getReturnType(),
     ^~
I go there and take a look. It's clearly just a minor indent problem. We
better remove this warning.


thanks,
--lx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160320/6ac06c60/attachment.html>


More information about the cfe-dev mailing list