llvm-project/clang/docs
Luca Di Sera 5c67cf0a7f Add clang_CXXMethod_isMoveAssignmentOperator to libclang
The new method is a wrapper of `CXXMethodDecl::isMoveAssignmentOperator` and
can be used to recognized move-assignment operators in libclang.

An export for the function, together with its documentation, was added to
"clang/include/clang-c/Index.h" with an implementation provided in
"clang/tools/libclang/CIndex.cpp". The implementation was based on
similar `clang_CXXMethod.*` implementations, following the same
structure but calling `CXXMethodDecl::isMoveAssignmentOperator` for its
main logic.

The new symbol was further added to "clang/tools/libclang/libclang.map"
to be exported, under the LLVM16 tag.

"clang/tools/c-index-test/c-index-test.c" was modified to print a
specific tag, "(move-assignment operator)", for cursors that are
recognized by `clang_CXXMethod_isMoveAssignmentOperator`.
A new regression test file,
"clang/test/Index/move-assignment-operator.cpp", was added to ensure
whether the correct constructs were recognized or not by the new function.

The "clang/test/Index/get-cursor.cpp" regression test file was updated
as it was affected by the new "(move-assignment operator)" tag.

A binding for the new function was added to libclang's python's
bindings, in "clang/bindings/python/clang/cindex.py", adding a new
method for `Cursor`, `is_move_assignment_operator_method`.
An accompanying test was added to
`clang/bindings/python/tests/cindex/test_cursor.py`, testing the new
function with the same methodology as the corresponding libclang test.

The current release note, `clang/docs/ReleaseNotes.rst`, was modified to
report the new addition under the "libclang" section.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D137246
2022-11-14 15:21:36 +01:00
..
CommandGuide [docs] clang.rst: gnu++14 => gnu++17 2022-10-29 00:15:24 -07:00
DataFlowAnalysisIntroImages [clang][docs][dataflow] Added an introduction to dataflow analysis 2021-12-06 12:16:35 +01:00
HLSL [Docs] [HLSL] Add note about PCH support 2022-10-07 10:49:21 -07:00
analyzer [analyzer] Warn if the size of the array in `new[]` is undefined 2022-09-04 23:06:58 +02:00
tools [docs] Update clang-formatted-files.txt after bindings/go removal (D135436) 2022-10-25 10:57:19 -07:00
APINotes.rst [docs][clang] Fix a broken link on the APINotes doc 2022-06-12 22:53:32 +09:00
AddressSanitizer.rst [asan] Enable detect_stack_use_after_return=1 by default on Linux 2022-04-28 21:08:16 -07:00
AutomaticReferenceCounting.rst [clang] Document objc_unsafeClaimAutoreleasedReturnValue. 2022-02-08 14:30:39 -08:00
Block-ABI-Apple.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
BlockLanguageSpec.rst
CMakeLists.txt Fix Clang Sphinx docs build 2022-09-06 09:52:22 -04:00
ClangCheck.rst
ClangFormat.rst [docs] Fix old path for clang-format 2022-10-27 13:14:05 -07:00
ClangFormatStyleOptions.rst [clang-format] Add BreakBeforeInlineASMColon configuration 2022-11-10 22:31:09 +01:00
ClangFormattedStatus.rst [mlir] Remove VectorToROCDL 2022-07-12 15:21:22 +00:00
ClangLinkerWrapper.rst [Clang][Docs] Update the clang-linker-wrapper documentation. 2022-07-08 14:30:07 -04:00
ClangNvlinkWrapper.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
ClangOffloadBundler.rst [clang][NFC] Fix Typo 2022-01-28 11:55:46 -08:00
ClangOffloadPackager.rst [OffloadPackager] Add option to extract files from images 2022-08-23 12:57:16 +00:00
ClangOffloadWrapper.rst [CommandLine] --help: print "-o <xxx>" instead of "-o=<xxx>" 2022-07-14 01:28:28 -07:00
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 Add a clang-transformer tutorial 2021-11-17 13:40:46 +00:00
CodeOwners.rst Update the clang and clang-tools-extra code owners files 2022-09-06 08:28:03 -04:00
ConstantInterpreter.rst
ControlFlowIntegrity.rst KCFI sanitizer 2022-08-24 22:41:38 +00:00
ControlFlowIntegrityDesign.rst [NFC] Trim trailing whitespace in *.rst 2021-11-15 09:17:08 +08:00
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 Fix duplicate word typos; NFC 2022-11-08 07:21:23 -05:00
DebuggingCoroutines.rst [docs] Add examples for printing asynchronous stack for coroutines 2022-08-23 17:37:12 +08:00
DriverArchitecture.png
DriverInternals.rst
ExternalClangExamples.rst Update references to Discourse instead of the mailing lists. 2022-07-08 11:16:47 -07:00
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
InternalsManual.rst Clarifying the documentation for diagnostic formats; NFC 2022-08-31 08:32:58 -04:00
IntroductionToTheClangAST.rst [clang] Fix typos in documentation (NFC) 2021-08-21 12:17:58 -07:00
ItaniumMangleAbiTags.rst
JSONCompilationDatabase.rst Fix the clang Sphinx bot 2022-09-16 07:19:30 -04:00
LTOVisibility.rst [clang] Don't emit type test/assume for virtual classes that should never participate in WPD 2022-06-16 09:38:14 -07:00
LanguageExtensions.rst Add builtin_elementwise_sin and builtin_elementwise_cos 2022-11-10 23:30:27 -08:00
LeakSanitizer.rst
LibASTImporter.rst Update LibASTImporter.rst 2022-06-26 19:22:52 +05:30
LibASTMatchers.rst
LibASTMatchersReference.html [doc] Fix invalid reference to `hasReturnArgument` matcher. 2022-10-18 08:47:21 +02:00
LibASTMatchersTutorial.rst [Documentation] Fixed typos in LibASTMatchers tutorial 2022-06-10 10:22:36 +02:00
LibFormat.rst [NFC] Inclusive language: Remove instances of master in URLs 2021-11-05 08:48:41 -05:00
LibTooling.rst
MSVCCompatibility.rst
MatrixTypes.rst Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
MemorySanitizer.rst [msan] Update Use-after-destruction documentation 2022-04-21 14:02:02 -07:00
MisExpect.rst [misexpect] Re-implement MisExpect Diagnostics 2022-04-19 21:23:48 +00:00
Modules.rst [Docs] Add a link that refers to C++ standard modules in Clang modules doc 2022-09-18 18:31:49 +08:00
ObjectiveCLiterals.rst
OffloadingDesign.rst [docs][clang] Fixing minor typo 2022-06-08 23:35:11 +00:00
OpenCLSupport.rst Update references to Discourse instead of the mailing lists. 2022-07-08 11:16:47 -07:00
OpenMPSupport.rst [OpenMP][NFC] Unclaim iterators in 'map' clause and motion clauses 2022-11-08 11:43:07 -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 Add clang_CXXMethod_isMoveAssignmentOperator to libclang 2022-11-14 15:21:36 +01:00
SYCLSupport.rst
SafeStack.rst [Clang][Doc][SafeStack] Fix deadlink (NFC) 2022-06-11 10:59:51 -04:00
SanitizerCoverage.rst Fix the clang Sphinx bot 2022-09-16 07:19:30 -04:00
SanitizerSpecialCaseList.rst [sanitizer] Add "mainfile" prefix to sanitizer special case list 2022-07-15 10:39:26 -07:00
SanitizerStats.rst
ShadowCallStack.rst
SourceBasedCodeCoverage.rst
StandardCPlusPlusModules.rst [C++20] [Modules] Document the behavior about reserved module names 2022-11-10 16:43:50 +08:00
ThinLTO.rst [clang] Fix sentence in the usage section of ThinLTO docs. 2021-09-30 07:26:19 +05:30
ThreadSafetyAnalysis.rst Thread safety analysis: Support copy-elided production of scoped capabilities through arbitrary calls 2022-10-13 19:36:15 +02:00
ThreadSanitizer.rst [tsan] Add support for disable_sanitizer_instrumentation attribute 2021-08-23 12:38:33 +02:00
Toolchain.rst Update all LLVM documentation mentioning runtimes in LLVM_ENABLE_PROJECTS 2022-02-10 15:05:23 -05:00
Tooling.rst
UndefinedBehaviorSanitizer.rst Fix "the the" typo in documentation and user facing strings 2022-05-05 17:52:08 +02:00
UsersManual.rst [Driver] Add -fsample-profile-use-profi 2022-11-08 15:51:38 +08:00
conf.py [docs] Remove hard-coded version numbers from sphinx configs 2022-02-01 23:14:12 -08: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
index.rst Update the clang and clang-tools-extra code owners files 2022-09-06 08:28:03 -04:00
make.bat

README.txt

See llvm/docs/README.txt