cling/test/Prompt
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
..
MetaProcessor Adapt to new default opt level. 2017-11-07 19:44:33 +01:00
ValuePrinter Add test against ROOT-9687 2022-02-22 17:59:04 +01:00
BlockComments.C When looking for the end of a block comment, really don’t bother with nesting. Finding the first end is good enough, the real parser can warn about any balancing issues. 2017-07-13 10:21:58 +02:00
ClashingDecls.C Move from KnownFail, now that it works! 2017-01-12 11:14:34 +01:00
Continuation.C InputValidator::validate(): add test against ROOT-9202 2021-09-08 19:14:06 +02:00
cppmacros_remember.C Refer to license in test and demo files. 2014-01-07 12:02:58 +01:00
cppmacros.C Test for ROOT-7113: pragma once on prompt. 2015-02-27 11:05:19 +01:00
cppundef.C Refer to license in test and demo files. 2014-01-07 12:02:58 +01:00
decls.C Ignore -Wunused-result in wrapped code 2023-04-20 15:14:04 +02:00
DontWrap.C IsClassOrFunction: Handle signedness modifiers 2020-07-01 22:44:08 +02:00
Exceptions.C Reset function sections before JITting 2021-02-10 15:18:14 +01:00
faildecls.C Add test for ROOT-7610. 2016-09-06 10:14:21 +02:00
globalinit.C Windows: Fix various test failures. 2016-12-12 12:44:09 +01:00
globalinit.C2.h Fix license; remove $Id$ version. 2014-01-07 11:14:04 +01:00
globalinit.C.h Fix license; remove $Id$ version. 2014-01-07 11:14:04 +01:00
globals.C Refer to license in test and demo files. 2014-01-07 12:02:58 +01:00
initorder.C Windows: Trivial fix for initorder.C. 2017-02-17 15:14:06 +01:00
OutputRedirect.C Adapt to new=old value printer: "1.000000" for a double 1 instead of "1". 2017-12-05 15:40:37 +01:00
PreprocessorIf.C Add preprocessor #if conditional support to InputValidator. 2016-12-12 12:29:38 +01:00
RawInput.C Refer to license in test and demo files. 2014-01-07 12:02:58 +01:00
RecursiveGlobalInits.C Add forgotten comment as part of d7da914fa0 2022-02-22 15:59:06 +01:00
Redeclarations.C Create a virtual file entry for each input line. 2017-06-08 10:29:13 +02:00
Regression.C llvm9 fixes the printing of unscoped enums. 2021-02-25 20:44:17 +01:00