Skip to content

Commit d3047f6

Browse files
committed
C#: Update calling convetion QL doc to comply with standard.
1 parent 9ae17f9 commit d3047f6

File tree

1 file changed

+8
-8
lines changed
  • csharp/ql/lib/semmle/code/csharp

1 file changed

+8
-8
lines changed

csharp/ql/lib/semmle/code/csharp/Type.qll

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -882,37 +882,37 @@ private newtype TCallingConvention =
882882
MkCallingConvention(int i) { function_pointer_calling_conventions(_, i) }
883883

884884
/**
885-
* Represents a signature calling convention. Specifies how arguments in a given
885+
* A signature representing a calling convention. Specifies how arguments in a given
886886
* signature are passed from the caller to the callee.
887887
*/
888888
class CallingConvention extends TCallingConvention {
889889
/** Gets a textual representation of this calling convention. */
890890
string toString() { result = "CallingConvention" }
891891
}
892892

893-
/** Managed calling convention with fixed-length argument list. */
893+
/** A managed calling convention with fixed-length argument list. */
894894
class DefaultCallingConvention extends CallingConvention {
895895
DefaultCallingConvention() { this = MkCallingConvention(0) }
896896

897897
override string toString() { result = "DefaultCallingConvention" }
898898
}
899899

900-
/** Unmanaged C/C++-style calling convention where the call stack is cleaned by the caller. */
900+
/** An unmanaged C/C++-style calling convention where the call stack is cleaned by the caller. */
901901
class CDeclCallingConvention extends CallingConvention {
902902
CDeclCallingConvention() { this = MkCallingConvention(1) }
903903

904904
override string toString() { result = "CDeclCallingConvention" }
905905
}
906906

907-
/** Unmanaged calling convention where call stack is cleaned up by the callee. */
907+
/** An unmanaged calling convention where call stack is cleaned up by the callee. */
908908
class StdCallCallingConvention extends CallingConvention {
909909
StdCallCallingConvention() { this = MkCallingConvention(2) }
910910

911911
override string toString() { result = "StdCallCallingConvention" }
912912
}
913913

914914
/**
915-
* Unmanaged C++-style calling convention for calling instance member functions
915+
* An unmanaged C++-style calling convention for calling instance member functions
916916
* with a fixed argument list.
917917
*/
918918
class ThisCallCallingConvention extends CallingConvention {
@@ -921,22 +921,22 @@ class ThisCallCallingConvention extends CallingConvention {
921921
override string toString() { result = "ThisCallCallingConvention" }
922922
}
923923

924-
/** Unmanaged calling convention where arguments are passed in registers when possible. */
924+
/** An unmanaged calling convention where arguments are passed in registers when possible. */
925925
class FastCallCallingConvention extends CallingConvention {
926926
FastCallCallingConvention() { this = MkCallingConvention(4) }
927927

928928
override string toString() { result = "FastCallCallingConvention" }
929929
}
930930

931-
/** Managed calling convention for passing extra arguments. */
931+
/** A managed calling convention for passing extra arguments. */
932932
class VarArgsCallingConvention extends CallingConvention {
933933
VarArgsCallingConvention() { this = MkCallingConvention(5) }
934934

935935
override string toString() { result = "VarArgsCallingConvention" }
936936
}
937937

938938
/**
939-
* Unmanaged calling convention that indicates that the specifics
939+
* An unmanaged calling convention that indicates that the specifics
940940
* are encoded as modopts.
941941
*/
942942
class UnmanagedCallingConvention extends CallingConvention {

0 commit comments

Comments
 (0)