forked from OSchip/llvm-project
e53b9f733a
Given the following code: ``` void Foo(int); void Baz() { Bar(sizeof int); } ``` The error message which is printed today is this: ``` error: expected parentheses around type name in sizeof expression ``` There is no source location printed whatsoever, so fixing a compile break like this becomes extremely hard in a large codebase. My change improves the error message. But it doesn't output a FixItHint because I wasn't able to figure out how to get the locations for left and right parens. So any tips would be appreciated. ``` <source>:7:6: error: expected parentheses around type name in sizeof expression Bar(sizeof int); ^ ``` Reviewed By: rsmith Differential Revision: https://reviews.llvm.org/D91129 |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
ParseAST.cpp | ||
ParseCXXInlineMethods.cpp | ||
ParseDecl.cpp | ||
ParseDeclCXX.cpp | ||
ParseExpr.cpp | ||
ParseExprCXX.cpp | ||
ParseInit.cpp | ||
ParseObjc.cpp | ||
ParseOpenMP.cpp | ||
ParsePragma.cpp | ||
ParseStmt.cpp | ||
ParseStmtAsm.cpp | ||
ParseTemplate.cpp | ||
ParseTentative.cpp | ||
Parser.cpp |