[all-commits] [llvm/llvm-project] 260b91: Use getLocation() in "too few/too many arguments" ...
John Marshall via All-commits
all-commits at lists.llvm.org
Tue Feb 18 08:23:35 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 260b91f379c8f86d3d6008648b3f2a945a007888
https://github.com/llvm/llvm-project/commit/260b91f379c8f86d3d6008648b3f2a945a007888
Author: John Marshall <John.W.Marshall at glasgow.ac.uk>
Date: 2020-02-18 (Tue, 18 Feb 2020)
Changed paths:
M clang/lib/Sema/SemaExpr.cpp
M clang/test/Misc/serialized-diags.c
M clang/test/Sema/exprs.c
Log Message:
-----------
Use getLocation() in "too few/too many arguments" diagnostic
Use the more accurate location when emitting the location of the
function being called's prototype in diagnostics emitted when calling
a function with an incorrect number of arguments.
In particular, avoids showing a trace of irrelevant macro expansions
for "MY_EXPORT static int AwesomeFunction(int, int);". Fixes PR#23564.
More information about the All-commits
mailing list