llvm-project/clang/lib
John Marshall 260b91f379 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.
2020-02-18 11:23:17 -05:00
..
ARCMigrate [ARCMT][NFC] Reduce #include dependencies 2020-02-12 19:10:46 +01:00
AST [ASTImporter] Prevent the ASTImporter from creating multiple main FileIDs. 2020-02-18 08:37:26 +01:00
ASTMatchers Remove clang::ast_type_traits namespace in favor of clang 2020-02-13 10:46:47 -08:00
Analysis [clang][Analysis] CallGraph: store the actual call `Expr*` in the CallGraphNode::CallRecord 2020-02-13 23:37:53 +03:00
Basic [NFC] Remove trailing space 2020-02-18 10:49:13 +08:00
CodeGen Revert "Reland "[DebugInfo] Enable the debug entry values feature by default"" 2020-02-18 16:38:11 +01:00
CrossTU [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
DirectoryWatcher Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Driver Reland D74436 "Change clang option -ffp-model=precise to select ffp-contract=on"" 2020-02-18 06:55:36 -08:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Add new option BeforeLambdaBody in Allman style. 2020-02-13 22:16:41 +01:00
Frontend Revert "Reland "[DebugInfo] Enable the debug entry values feature by default"" 2020-02-18 16:38:11 +01:00
FrontendTool Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Headers [Mips] Add intrinsics for 4-byte and 8-byte MSA loads/stores. 2020-02-11 11:47:30 +01:00
Index [NFC] Remove trailing space 2020-02-18 10:49:13 +08:00
Lex Prefer __vector over vector keyword for altivec 2020-02-10 20:23:26 +01:00
Parse [NFC] Remove trailing space 2020-02-18 10:49:13 +08:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Use getLocation() in "too few/too many arguments" diagnostic 2020-02-18 11:23:17 -05:00
Serialization [NFC] Remove trailing space 2020-02-18 10:49:13 +08:00
StaticAnalyzer [analyzer] VforkChecker: allow execve after vfork. 2020-02-18 09:19:29 +03:00
Tooling [libTooling] Add option for `buildAST` to report diagnostics. 2020-02-18 09:11:51 -05:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00