llvm-capstone/clang/docs
Martin Storsjö 50ec1306d0 [clang] Add --start-no-unused-arguments/--end-no-unused-arguments to silence some unused argument warnings
When passing a set of flags to configure defaults for a specific
target (similar to the cmake settings `CLANG_DEFAULT_RTLIB`,
`CLANG_DEFAULT_UNWINDLIB`, `CLANG_DEFAULT_CXX_STDLIB` and
`CLANG_DEFAULT_LINKER`, but without hardcoding them in the binary),
some of the flags may cause warnings (e.g. `-stdlib=` when compiling C
code). Allow requesting selectively ignoring unused arguments among
some of the arguments on the command line, without needing to resort
to `-Qunused-arguments` or `-Wno-unused-command-line-argument`.

Fix up the existing diagnostics.c testcase. It was added in
response to PR12181 to fix handling of
`-Werror=unused-command-line-argument`, but the command line option
in the test (`-fzyzzybalubah`) now triggers "error: unknown argument"
instead of the intended warning. Change it into a linker input
(`-lfoo`) which triggers the intended diagnostic. Extend the
existing test case to check more cases and make sure that it keeps
testing the intended case.

Add testing of the new option to this existing test.

Differential Revision: https://reviews.llvm.org/D116503
2022-01-11 09:22:00 +02:00
..
analyzer Revert "[analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file" 2021-12-16 20:46:51 -05:00
CommandGuide Update Bug report URL to Github Issues 2022-01-06 17:33:25 +08:00
DataFlowAnalysisIntroImages [clang][docs][dataflow] Added an introduction to dataflow analysis 2021-12-06 12:16:35 +01:00
tools [clang-format] NFC update LLVM overall clang-formatted status 2022-01-03 13:10:30 +00:00
AddressSanitizer.rst Revert "[asan] Add support for disable_sanitizer_instrumentation attribute" 2021-12-10 14:33:38 -08:00
APINotes.rst
AutomaticReferenceCounting.rst
Block-ABI-Apple.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
BlockLanguageSpec.rst
ClangCheck.rst
ClangCommandLineReference.rst [clang] Add --start-no-unused-arguments/--end-no-unused-arguments to silence some unused argument warnings 2022-01-11 09:22:00 +02:00
ClangFormat.rst [clang-format] Add option to explicitly specify a config file 2022-01-03 11:43:25 +01:00
ClangFormatStyleOptions.rst [clang-format] Fix SeparateDefinitionBlocks docs and ... 2022-01-05 12:31:34 +01:00
ClangFormattedStatus.rst [clang-format] NFC update LLVM overall clang-formatted status 2022-01-03 13:10:30 +00:00
ClangNvlinkWrapper.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
ClangOffloadBundler.rst [clang-offload-bundler][docs][NFC] invalid indentation cause build issue 2021-09-24 08:03:52 +01:00
ClangPlugins.rst [clang][driver] Add -fplugin-arg- to pass arguments to plugins 2021-11-25 10:47:55 +01:00
ClangStaticAnalyzer.rst
ClangTools.rst
ClangTransformerTutorial.rst Add a clang-transformer tutorial 2021-11-17 13:40:46 +00:00
CMakeLists.txt
conf.py [clang][docs][dataflow] Added an introduction to dataflow analysis 2021-12-06 12:16:35 +01:00
ConstantInterpreter.rst
ControlFlowIntegrity.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
ControlFlowIntegrityDesign.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
CrossCompilation.rst
DataFlowAnalysisIntro.md [clang][docs][dataflow] Added an introduction to dataflow analysis 2021-12-06 12:16:35 +01:00
DataFlowSanitizer.rst [DFSan] Add force_zero_label abilist option to DFSan. This can be used as a work-around for overtainting. 2021-09-17 12:57:40 -07:00
DataFlowSanitizerDesign.rst [clang] Fix typos in documentation (NFC) 2021-08-21 12:17:58 -07:00
doxygen-mainpage.dox
doxygen.cfg.in [NFC] Inclusive Language: change master to main for .chm files 2021-11-08 08:23:04 -06:00
DriverArchitecture.png
DriverInternals.rst
ExternalClangExamples.rst
FAQ.rst
HardwareAssistedAddressSanitizerDesign.rst
HowToSetupToolingForLLVM.rst
index.rst [clang][docs][dataflow] Added an introduction to dataflow analysis 2021-12-06 12:16:35 +01:00
InternalsManual.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
IntroductionToTheClangAST.rst [clang] Fix typos in documentation (NFC) 2021-08-21 12:17:58 -07:00
ItaniumMangleAbiTags.rst
JSONCompilationDatabase.rst Compilation Database: Point Bazel users to a solution 2021-11-28 19:30:06 -05:00
LanguageExtensions.rst Document __builtin_trap and __builtin_debugtrap 2022-01-05 03:10:17 -05:00
LeakSanitizer.rst
LibASTImporter.rst
LibASTMatchers.rst
LibASTMatchersReference.html Fix documentation for forEachLambdaCapture and hasAnyCapture 2021-12-02 13:28:05 +00:00
LibASTMatchersTutorial.rst
LibFormat.rst [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
LibTooling.rst
LTOVisibility.rst
make.bat
MatrixTypes.rst
MemorySanitizer.rst [msan] Add support for disable_sanitizer_instrumentation attribute 2021-08-20 15:11:26 +02:00
Modules.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
MSVCCompatibility.rst
ObjectiveCLiterals.rst
OpenCLSupport.rst [Docs] Document C++ for OpenCL 2021 support in clang. 2022-01-04 11:18:15 +00:00
OpenMPSupport.rst [OpenMP][NFC] update status for 5.1 'fail' atomic extension 2021-12-17 11:46:37 -06:00
PCHInternals.rst
PCHLayout.graffle
PCHLayout.png
RAVFrontendAction.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
README.txt
RefactoringEngine.rst
ReleaseNotes.rst [docs] Fix documentation of -fno-strict-float-cast-overflow after D115804. 2022-01-08 12:12:44 -08:00
SafeStack.rst
SanitizerCoverage.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
SanitizerSpecialCaseList.rst
SanitizerStats.rst
ShadowCallStack.rst
SourceBasedCodeCoverage.rst
SYCLSupport.rst
ThinLTO.rst [clang] Fix sentence in the usage section of ThinLTO docs. 2021-09-30 07:26:19 +05:30
ThreadSafetyAnalysis.rst [clang][docs] Inclusive language: remove use of sanity check in option description 2021-11-30 15:07:43 -05:00
ThreadSanitizer.rst [tsan] Add support for disable_sanitizer_instrumentation attribute 2021-08-23 12:38:33 +02:00
Toolchain.rst [clang] Fix library name (libsupc++) in the admonition note. 2021-09-29 19:45:06 +05:30
Tooling.rst
UndefinedBehaviorSanitizer.rst Improve UBSan documentation 2021-08-02 15:10:21 -07:00
UsersManual.rst [docs] Fix documentation of -fno-strict-float-cast-overflow after D115804. 2022-01-08 12:12:44 -08:00

See llvm/docs/README.txt