cling/test
Javier Lopez-Gomez a0d186073b Ignore -Wunused-result in wrapped code
Make `FilteringDiagConsumer` also ignore -Wunused-result. Whether or not
such diagnostic is filtered depends on `CompilationOptions::IgnorePromptDiags`.

In particular, `IgnorePromptDiags` should _only_ be enabled for code parsed
via `Interpreter::EvaluateInternal()`.  Thus, as of this commit `IgnorePromptDiags`
defaults to 0 in `makeDefaultCompilationOpts()`

The observable effect of this change is ignoring `-Wunused-result` for
wrapped code, e.g.
```c++
[[nodiscard]] int f() { return 0; }

// This yields `warning: ignoring return value of function declared with 'nodiscard' attribute [-Wunused-result]`
void g() { f(); }

f(); // but this should not
```
2023-04-20 15:14:04 +02:00
..
Autoloading Remove fwddecl files; RUN: often fails. 2020-08-12 09:14:07 +02:00
CodeGeneration Fixed bug in symbol linking for CUDA kernel registration with LLVM 13. 2022-12-09 08:44:19 +01:00
CodeUnloading TransactionUnloader: ensure function instantiations are processed only once 2022-03-03 18:29:03 +01:00
CUDADeviceCode Fixed CUDA mode for Clang/LLVM 9 upgrade 2021-02-25 20:44:19 +01:00
Driver Test cmd history support 2023-01-25 13:59:06 +01:00
DynamicLibraryManager Fix cached_realpath.C test by removing stale test dir. 2022-05-31 15:44:05 +02:00
ErrorRecovery Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
Extensions Get rid of extra-complex built_cling: 2021-02-25 20:44:18 +01:00
Interfaces Rename simplisticCast to castAs. 2023-02-03 07:29:07 +01:00
LibraryCall Use the dyld to show more meaningful message when a symbol is missing. 2021-05-08 20:59:07 +02:00
Lookup Add test against ROOT-6095 2022-02-03 09:29:03 +01:00
MultipleInterpreters Add cling output streams to cling/Utils/Output.h 2016-12-19 13:59:11 +01:00
NullDeref Turn on prtcheck for the ptrcheck tests. 2022-01-11 18:29:04 +01:00
Plugins Allow plugins to handle custom pragmas. 2018-10-08 21:44:55 +02:00
Pragmas Fix expected diags in test/Pragmas/load.C: 2021-03-16 09:59:03 +01:00
Prompt Ignore -Wunused-result in wrapped code 2023-04-20 15:14:04 +02:00
Recursion Reset function sections before JITting 2021-02-10 15:18:14 +01:00
SourceCall Diagnostic text changed 2022-12-09 08:44:18 +01:00
Utils Print a<b<c> >' rather than 'a<b<c>>' in the Transform.C test. 2022-12-09 08:44:18 +01:00
CMakeLists.txt Import updated lit config: 2021-02-25 20:44:18 +01:00
lit.cfg Bring vanilla-cling lit feature back: 2021-03-16 09:59:04 +01:00
lit.site.cfg.in Import updated lit config: 2021-02-25 20:44:18 +01:00