Quellcode durchsuchen

ctest: update documentation for CTEST_MEMORYCHECK_TYPE

The AddressSanitizer value was not documented.

Also fix some typos.
Ben Boeckel vor 11 Jahren
Ursprung
Commit
0b9ffffcd4

+ 6 - 0
Help/manual/ctest.1.rst

@@ -824,6 +824,12 @@ Configuration settings include:
   * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND_OPTIONS`
   * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_COMMAND_OPTIONS`
   * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND_OPTIONS``
   * :module:`CTest` module variable: ``MEMORYCHECK_COMMAND_OPTIONS``
 
 
+``MemoryCheckType``
+  Specify the type of memory checking to perform.
+
+  * `CTest Script`_ variable: :variable:`CTEST_MEMORYCHECK_TYPE`
+  * :module:`CTest` module variable: ``MEMORYCHECK_TYPE``
+
 ``MemoryCheckSuppressionFile``
 ``MemoryCheckSuppressionFile``
   Specify a file containing suppression rules for the
   Specify a file containing suppression rules for the
   ``MemoryCheckCommand`` tool.  It will be passed with options
   ``MemoryCheckCommand`` tool.  It will be passed with options

+ 3 - 2
Help/variable/CTEST_MEMORYCHECK_TYPE.rst

@@ -1,6 +1,7 @@
 CTEST_MEMORYCHECK_TYPE
 CTEST_MEMORYCHECK_TYPE
--------------------------
+----------------------
 
 
 Specify the CTest ``MemoryCheckType`` setting
 Specify the CTest ``MemoryCheckType`` setting
 in a :manual:`ctest(1)` dashboard client script.
 in a :manual:`ctest(1)` dashboard client script.
-Valid values are Valgrind, Purify, BoundsChecker, and ThreadSanitizer.
+Valid values are Valgrind, Purify, BoundsChecker, and ThreadSanitizer,
+and AddressSanitizer.

+ 1 - 1
Source/CTest/cmCTestMemCheckHandler.h

@@ -49,7 +49,7 @@ private:
     VALGRIND,
     VALGRIND,
     PURIFY,
     PURIFY,
     BOUNDS_CHECKER,
     BOUNDS_CHECKER,
-    // checkers after hear do not use the standard error list
+    // checkers after here do not use the standard error list
     THREAD_SANITIZER,
     THREAD_SANITIZER,
     ADDRESS_SANITIZER
     ADDRESS_SANITIZER
   };
   };