mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
CPP: Add a reference to the ReturnConstType tests.
This commit is contained in:
@@ -47,3 +47,6 @@ MYCHAR getAMYCHAR(); // FALSE POSITIVE
|
||||
|
||||
#define ID(T) T id_ (T x) {return x;}
|
||||
ID(const char); // FALSE POSITIVE
|
||||
|
||||
const float pi = 3.14159626f;
|
||||
const float &getPiRef() { return pi; } // GOOD
|
||||
|
||||
Reference in New Issue
Block a user