hanchenye-llvm-project/clang/docs
Alex Richardson 9e27f38354 [clang-format] Add a SpaceAroundPointerQualifiers style option
Some projects (e.g. FreeBSD) align pointers to the right but expect a
space between the '*' and any pointer qualifiers such as const. To handle
these cases this patch adds a new config option SpaceAroundPointerQualifiers
that can be used to configure whether spaces need to be added before/after
pointer qualifiers.

PointerAlignment = Right
SpaceAroundPointerQualifiers = Default/After:
void *const *x = NULL;
SpaceAroundPointerQualifiers = Before/Both
void * const *x = NULL;

PointerAlignment = Left
SpaceAroundPointerQualifiers = Default/Before:
void* const* x = NULL;
SpaceAroundPointerQualifiers = After/Both
void* const * x = NULL;

PointerAlignment = Middle
SpaceAroundPointerQualifiers = Default/Before/After/Both:
void * const * x = NULL;

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D88227
2020-10-18 18:17:50 +01:00
..
CommandGuide [clang][docs] Fix documentation of -O 2020-09-17 13:44:01 +01:00
analyzer [NFC][Docs] fix clang-docs compilation 2020-09-24 13:13:38 +02:00
tools
APINotes.rst docs: add documentation describing API Notes 2020-10-05 18:29:13 +00:00
AddressSanitizer.rst
AutomaticReferenceCounting.rst
Block-ABI-Apple.rst Fix the type of the invoke function in the block ABI documentation 2020-09-04 10:29:09 -07:00
Block-ABI-Apple.txt
BlockLanguageSpec.rst
CMakeLists.txt
ClangCheck.rst
ClangCommandLineReference.rst AMDGPU: Update AMDHSA code object version handling 2020-10-14 13:04:27 -04:00
ClangFormat.rst Add -Wno-error=unknown flag to clang-format. 2020-09-19 10:17:57 +02:00
ClangFormatStyleOptions.rst [clang-format] Add a SpaceAroundPointerQualifiers style option 2020-10-18 18:17:50 +01:00
ClangFormattedStatus.rst
ClangPlugins.rst
ClangStaticAnalyzer.rst
ClangTools.rst
ConstantInterpreter.rst
ControlFlowIntegrity.rst [docs] Update ControlFlowIntegrity.rst. 2020-10-02 12:01:05 -07:00
ControlFlowIntegrityDesign.rst
CrossCompilation.rst
DataFlowSanitizer.rst [docs] Add missing semicolon to example. 2020-08-14 13:46:05 -07:00
DataFlowSanitizerDesign.rst
DiagnosticsReference.rst
DriverArchitecture.png
DriverInternals.rst
ExternalClangExamples.rst
FAQ.rst
HardwareAssistedAddressSanitizerDesign.rst
HowToSetupToolingForLLVM.rst
InternalsManual.rst
IntroductionToTheClangAST.rst
ItaniumMangleAbiTags.rst
JSONCompilationDatabase.rst
LTOVisibility.rst [Docs] Document --lto-whole-program-visibility 2020-08-25 19:44:54 -07:00
LanguageExtensions.rst Revert "[SYCL] Implement __builtin_unique_stable_name." 2020-10-12 01:10:09 -04:00
LeakSanitizer.rst
LibASTImporter.rst
LibASTMatchers.rst
LibASTMatchersReference.html [clang-tidy] Fix crash in readability-function-cognitive-complexity on weak refs 2020-10-11 18:52:38 +03:00
LibASTMatchersTutorial.rst
LibFormat.rst
LibTooling.rst
MSVCCompatibility.rst
Makefile.sphinx
MatrixTypes.rst
MemorySanitizer.rst
Modules.rst
ObjectiveCLiterals.rst
OpenCLSupport.rst
OpenMPSupport.rst [OpenMP][Docs] Mark `present` map type modifier as done 2020-08-05 10:03:31 -04:00
PCHInternals.rst
PCHLayout.graffle
PCHLayout.png
RAVFrontendAction.rst
README.txt
RefactoringEngine.rst
ReleaseNotes.rst [Sema, CodeGen] Implement [[likely]] and [[unlikely]] in SwitchStmt 2020-10-18 13:48:42 +02:00
SafeStack.rst
SanitizerCoverage.rst
SanitizerSpecialCaseList.rst
SanitizerStats.rst
ShadowCallStack.rst
SourceBasedCodeCoverage.rst [profile] Add %t LLVM_PROFILE_FILE option to substitute $TMPDIR 2020-09-25 09:39:40 -07:00
ThinLTO.rst [ThinLTO][Documentation] Mention possible values for concurrency flags 2020-10-13 09:57:58 -04:00
ThreadSafetyAnalysis.rst Thread safety analysis: Improve documentation for ASSERT_CAPABILITY 2020-09-26 22:16:50 +02:00
ThreadSanitizer.rst
Toolchain.rst
Tooling.rst
UndefinedBehaviorSanitizer.rst Add an unsigned shift base sanitizer 2020-08-27 19:50:10 -07:00
UsersManual.rst PR44406: Follow behavior of array bound constant folding in more recent versions of GCC. 2020-10-16 14:34:35 -07:00
conf.py
doxygen-mainpage.dox
doxygen.cfg.in
index.rst
make.bat

README.txt

See llvm/docs/README.txt