Skip to content

Commit 24b4a00

Browse files
committed
Document assumption underlying CompileTimeComputedIntegralLiteral
1 parent 00d36a7 commit 24b4a00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/common/src/codingstandards/cpp/Literals.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ class Utf32StringLiteral extends StringLiteral {
3333
/**
3434
* A literal resulting from the use of a constexpr
3535
* variable, or macro expansion.
36+
* We rely on the fact that the value text of a literal is equal to the
37+
* `constexpr` variable or macro name.
3638
*/
3739
class CompileTimeComputedIntegralLiteral extends Literal {
3840
CompileTimeComputedIntegralLiteral() {

0 commit comments

Comments
 (0)