Skip to content

Commit 5a59354

Browse files
committed
C++: Minor clean up of the builtin operations qldoc
1 parent bce2539 commit 5a59354

File tree

1 file changed

+28
-30
lines changed

1 file changed

+28
-30
lines changed

cpp/ql/lib/semmle/code/cpp/exprs/BuiltInOperations.qll

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Provides classes for modeling built-in operations. Built-in operations are
2+
* Provides classes for modeling built-in operations. Built-in operations are
33
* typically compiler specific and are used by libraries and generated code.
44
*/
55

@@ -120,8 +120,8 @@ class BuiltInNoOp extends BuiltInOperation, @noopexpr {
120120

121121
/**
122122
* A C/C++ `__builtin_offsetof` built-in operation (used by some implementations
123-
* of `offsetof`). The operation retains its semantics even in the presence
124-
* of an overloaded `operator &`). This is a gcc/clang extension.
123+
* of `offsetof`). The operation retains its semantics even in the presence
124+
* of an overloaded `operator &`). This is a gcc/clang extension.
125125
* ```
126126
* struct S {
127127
* int a, b;
@@ -137,8 +137,8 @@ class BuiltInOperationBuiltInOffsetOf extends BuiltInOperation, @offsetofexpr {
137137

138138
/**
139139
* A C/C++ `__INTADDR__` built-in operation (used by some implementations
140-
* of `offsetof`). The operation retains its semantics even in the presence
141-
* of an overloaded `operator &`). This is an EDG extension.
140+
* of `offsetof`). The operation retains its semantics even in the presence
141+
* of an overloaded `operator &`). This is an EDG extension.
142142
* ```
143143
* struct S {
144144
* int a, b;
@@ -479,8 +479,7 @@ class BuiltInOperationBuiltInTypesCompatibleP extends BuiltInOperation, @typesco
479479
/**
480480
* A clang `__builtin_shufflevector` expression.
481481
*
482-
* It outputs a permutation of elements from one or two input vectors.
483-
* Please see
482+
* It outputs a permutation of elements from one or two input vectors. See
484483
* https://releases.llvm.org/3.7.0/tools/clang/docs/LanguageExtensions.html#langext-builtin-shufflevector
485484
* for more information.
486485
* ```
@@ -498,7 +497,7 @@ class BuiltInOperationBuiltInShuffleVector extends BuiltInOperation, @builtinshu
498497
* A gcc `__builtin_shuffle` expression.
499498
*
500499
* It outputs a permutation of elements from one or two input vectors.
501-
* Please see https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
500+
* See https://gcc.gnu.org/onlinedocs/gcc/Vector-Extensions.html
502501
* for more information.
503502
* ```
504503
* // Concatenate every other element of 4-element vectors V1 and V2.
@@ -516,7 +515,7 @@ class BuiltInOperationBuiltInShuffle extends BuiltInOperation, @builtinshuffle {
516515
* A clang `__builtin_convertvector` expression.
517516
*
518517
* Allows for conversion of vectors of equal element count and compatible
519-
* element types. Please see
518+
* element types. See
520519
* https://releases.llvm.org/3.7.0/tools/clang/docs/LanguageExtensions.html#builtin-convertvector
521520
* for more information.
522521
* ```
@@ -679,10 +678,9 @@ class BuiltInOperationIsAssignable extends BuiltInOperation, @isassignable {
679678
* of the `<type_traits>` header).
680679
*
681680
* Returns `true` if the type is a primitive type, or a `class`, `struct` or
682-
* `union` WITHOUT (1) virtual functions or base classes, (2) reference member
683-
* variable or (3) multiple occurrences of base `class` objects, among other
684-
* restrictions. Please see
685-
* https://en.cppreference.com/w/cpp/named_req/StandardLayoutType
681+
* `union` without (1) virtual functions or base classes, (2) reference member
682+
* variable, or (3) multiple occurrences of base `class` objects, among other
683+
* restrictions. See https://en.cppreference.com/w/cpp/named_req/StandardLayoutType
686684
* for more information.
687685
* ```
688686
* bool v = __is_standard_layout(MyType);
@@ -699,7 +697,7 @@ class BuiltInOperationIsStandardLayout extends BuiltInOperation, @isstandardlayo
699697
* implementations of the `<type_traits>` header).
700698
*
701699
* Returns `true` if instances of this type can be copied by trivial
702-
* means. The copying is done in a manner similar to the `memcpy`
700+
* means. The copying is done in a manner similar to the `memcpy`
703701
* function.
704702
*/
705703
class BuiltInOperationIsTriviallyCopyable extends BuiltInOperation, @istriviallycopyableexpr {
@@ -713,7 +711,7 @@ class BuiltInOperationIsTriviallyCopyable extends BuiltInOperation, @istrivially
713711
* the `<type_traits>` header).
714712
*
715713
* Returns `true` if the type is a scalar type, a reference type or an array of
716-
* literal types, among others. Please see
714+
* literal types, among others. See
717715
* https://en.cppreference.com/w/cpp/named_req/LiteralType
718716
* for more information.
719717
*
@@ -816,7 +814,7 @@ class BuiltInOperationIsNothrowConstructible extends BuiltInOperation, @isnothro
816814
}
817815

818816
/**
819-
* The `__has_finalizer` built-in operation. This is a Microsoft extension.
817+
* The `__has_finalizer` built-in operation. This is a Microsoft extension.
820818
*
821819
* Returns `true` if the type defines a _finalizer_ `C::!C(void)`, to be called
822820
* from either the regular destructor or the garbage collector.
@@ -831,10 +829,10 @@ class BuiltInOperationHasFinalizer extends BuiltInOperation, @hasfinalizerexpr {
831829
}
832830

833831
/**
834-
* The `__is_delegate` built-in operation. This is a Microsoft extension.
832+
* The `__is_delegate` built-in operation. This is a Microsoft extension.
835833
*
836834
* Returns `true` if the function has been declared as a `delegate`, used in
837-
* message forwarding. Please see
835+
* message forwarding. See
838836
* https://docs.microsoft.com/en-us/cpp/extensions/delegate-cpp-component-extensions
839837
* for more information.
840838
*/
@@ -845,9 +843,9 @@ class BuiltInOperationIsDelegate extends BuiltInOperation, @isdelegateexpr {
845843
}
846844

847845
/**
848-
* The `__is_interface_class` built-in operation. This is a Microsoft extension.
846+
* The `__is_interface_class` built-in operation. This is a Microsoft extension.
849847
*
850-
* Returns `true` if the type has been declared as an `interface`. Please see
848+
* Returns `true` if the type has been declared as an `interface`. See
851849
* https://docs.microsoft.com/en-us/cpp/extensions/interface-class-cpp-component-extensions
852850
* for more information.
853851
*/
@@ -858,9 +856,9 @@ class BuiltInOperationIsInterfaceClass extends BuiltInOperation, @isinterfacecla
858856
}
859857

860858
/**
861-
* The `__is_ref_array` built-in operation. This is a Microsoft extension.
859+
* The `__is_ref_array` built-in operation. This is a Microsoft extension.
862860
*
863-
* Returns `true` if the object passed in is a _platform array_. Please see
861+
* Returns `true` if the object passed in is a _platform array_. See
864862
* https://docs.microsoft.com/en-us/cpp/extensions/arrays-cpp-component-extensions
865863
* for more information.
866864
* ```
@@ -875,9 +873,9 @@ class BuiltInOperationIsRefArray extends BuiltInOperation, @isrefarrayexpr {
875873
}
876874

877875
/**
878-
* The `__is_ref_class` built-in operation. This is a Microsoft extension.
876+
* The `__is_ref_class` built-in operation. This is a Microsoft extension.
879877
*
880-
* Returns `true` if the type is a _reference class_. Please see
878+
* Returns `true` if the type is a _reference class_. See
881879
* https://docs.microsoft.com/en-us/cpp/extensions/classes-and-structs-cpp-component-extensions
882880
* for more information.
883881
* ```
@@ -892,10 +890,10 @@ class BuiltInOperationIsRefClass extends BuiltInOperation, @isrefclassexpr {
892890
}
893891

894892
/**
895-
* The `__is_sealed` built-in operation. This is a Microsoft extension.
893+
* The `__is_sealed` built-in operation. This is a Microsoft extension.
896894
*
897895
* Returns `true` if a given class or virtual function is marked as `sealed`,
898-
* meaning that it cannot be extended or overridden. The `sealed` keyword
896+
* meaning that it cannot be extended or overridden. The `sealed` keyword
899897
* is similar to the C++11 `final` keyword.
900898
* ```
901899
* ref class X sealed {
@@ -910,7 +908,7 @@ class BuiltInOperationIsSealed extends BuiltInOperation, @issealedexpr {
910908
}
911909

912910
/**
913-
* The `__is_simple_value_class` built-in operation. This is a Microsoft extension.
911+
* The `__is_simple_value_class` built-in operation. This is a Microsoft extension.
914912
*
915913
* Returns `true` if passed a value type that contains no references to the
916914
* garbage-collected heap.
@@ -929,9 +927,9 @@ class BuiltInOperationIsSimpleValueClass extends BuiltInOperation, @issimplevalu
929927
}
930928

931929
/**
932-
* The `__is_value_class` built-in operation. This is a Microsoft extension.
930+
* The `__is_value_class` built-in operation. This is a Microsoft extension.
933931
*
934-
* Returns `true` if passed a value type. Please see
932+
* Returns `true` if passed a value type. See
935933
* https://docs.microsoft.com/en-us/cpp/extensions/classes-and-structs-cpp-component-extensions
936934
* For more information.
937935
* ```
@@ -964,7 +962,7 @@ class BuiltInOperationIsFinal extends BuiltInOperation, @isfinalexpr {
964962
}
965963

966964
/**
967-
* The `__builtin_choose_expr` expression. This is a gcc/clang extension.
965+
* The `__builtin_choose_expr` expression. This is a gcc/clang extension.
968966
*
969967
* The expression functions similarly to the ternary `?:` operator, except
970968
* that it is evaluated at compile-time.

0 commit comments

Comments
 (0)