llvm/clang/docs
Jun Zhang 8a4d388c7f
[Clang][Sema] Prohibit statement expression in the default argument
As statement expression makes no sense in the default argument,
this patch tries to disable it in the all cases.

Please note that the statement expression is a GNU extension, which
means that Clang should be consistent with GCC. However, there's no
response from GCC devs since we have raised the issue for several weeks.
In this case, I think we can disallow statement expressions as a default
parameter in general for now, and relax the restriction if GCC folks
decide to retain the feature for functions but not lambdas in the
future.

Related discussion: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104765

Fixes https://github.com/llvm/llvm-project/issues/53488

Differential Revision: https://reviews.llvm.org/D119609
2022-04-06 09:28:20 +08:00
..
analyzer [analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file 2022-03-22 10:28:42 +08:00
CommandGuide Also document -arch as -arch is mac specific 2022-02-02 16:23:23 +01:00
DataFlowAnalysisIntroImages
tools [clang-format] [doc] Add script to automatically update help output in ClangFormat.rst. 2022-03-23 13:17:50 +01:00
AddressSanitizer.rst [asan] Add support for disable_sanitizer_instrumentation attribute 2022-02-18 09:51:54 +01:00
APINotes.rst
AutomaticReferenceCounting.rst [clang] Document objc_unsafeClaimAutoreleasedReturnValue. 2022-02-08 14:30:39 -08:00
Block-ABI-Apple.rst
BlockLanguageSpec.rst
ClangCheck.rst
ClangCommandLineReference.rst Revert "[Clang] Add option to set alternative toolchain path" 2022-03-31 15:58:01 +08:00
ClangFormat.rst [clang-format] [doc] Add script to automatically update help output in ClangFormat.rst. 2022-03-23 13:17:50 +01:00
ClangFormatStyleOptions.rst [clang-format][docs] Regenerate ClangFormatStyleOptions.rst 2022-03-17 09:45:43 +01:00
ClangFormattedStatus.rst [clang-format] NFC update LLVM overall clang-formatted status 2022-03-06 20:03:27 +00:00
ClangLinkerWrapper.rst [Clang][Docs] Add documention for new OpenMP offloading driver 2022-02-03 13:09:49 -05:00
ClangNvlinkWrapper.rst
ClangOffloadBundler.rst [clang][NFC] Fix Typo 2022-01-28 11:55:46 -08:00
ClangOffloadWrapper.rst
ClangPlugins.rst [docs] Add note about interaction between clang plugins and -clear-ast-before-backend 2022-02-28 12:53:09 -08:00
ClangStaticAnalyzer.rst
ClangTools.rst
ClangTransformerTutorial.rst
CMakeLists.txt
conf.py [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08:00
ConstantInterpreter.rst
ControlFlowIntegrity.rst
ControlFlowIntegrityDesign.rst
CrossCompilation.rst
DataFlowAnalysisIntro.md [analyzer][NFC] Merge similar conditional paths 2022-03-07 22:05:27 +05:30
DataFlowSanitizer.rst Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS 2022-02-10 15:05:23 -05:00
DataFlowSanitizerDesign.rst
doxygen-mainpage.dox
doxygen.cfg.in
DriverArchitecture.png
DriverInternals.rst
ExternalClangExamples.rst
FAQ.rst
HardwareAssistedAddressSanitizerDesign.rst
HowToSetupToolingForLLVM.rst [tooling] Explain how to create a compilation database on Windows [NFC] 2022-03-04 13:06:08 -07:00
index.rst Revert "[misexpect] Re-implement MisExpect Diagnostics" 2022-03-31 14:54:41 -07:00
InternalsManual.rst
IntroductionToTheClangAST.rst
ItaniumMangleAbiTags.rst
JSONCompilationDatabase.rst
LanguageExtensions.rst [Clang] Implement __builtin_source_location. 2022-03-28 18:29:02 -04:00
LeakSanitizer.rst
LibASTImporter.rst
LibASTMatchers.rst
LibASTMatchersReference.html [ASTMatchers] Expand isInline matcher to VarDecl 2022-02-23 08:34:00 +00:00
LibASTMatchersTutorial.rst
LibFormat.rst
LibTooling.rst
LTOVisibility.rst
make.bat
MatrixTypes.rst
MemorySanitizer.rst [msan] Add link to the lifetime definition 2022-03-29 14:42:36 -07:00
Modules.rst
MSVCCompatibility.rst
ObjectiveCLiterals.rst
OffloadingDesign.rst [Clang][Docs] Fix some typos in offloading design documentation 2022-02-07 15:24:17 -05:00
OpenCLSupport.rst [Docs][OpenCL] Update OpenCL 3.0 status in docs. 2022-02-16 12:32:20 +00:00
OpenMPSupport.rst [OpenMP][NFC] update status for 5.1 'nothing' directive to 'worked on' 2022-02-10 09:22:44 -06:00
PCHInternals.rst
PCHLayout.graffle
PCHLayout.png
RAVFrontendAction.rst
README.txt
RefactoringEngine.rst
ReleaseNotes.rst [Clang][Sema] Prohibit statement expression in the default argument 2022-04-06 09:28:20 +08:00
SafeStack.rst
SanitizerCoverage.rst
SanitizerSpecialCaseList.rst
SanitizerStats.rst
ShadowCallStack.rst
SourceBasedCodeCoverage.rst
SYCLSupport.rst
ThinLTO.rst
ThreadSafetyAnalysis.rst
ThreadSanitizer.rst
Toolchain.rst Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS 2022-02-10 15:05:23 -05:00
Tooling.rst
UndefinedBehaviorSanitizer.rst
UsersManual.rst Add support for floating-point option ffp-eval-method and for 2022-02-23 15:00:18 -08:00

See llvm/docs/README.txt