Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 648910e commit 9982112Copy full SHA for 9982112
1 file changed
cpp/ql/src/semmle/code/cpp/Element.qll
@@ -80,11 +80,9 @@ class Element extends ElementBase {
80
File getFile() { result = this.getLocation().getFile() }
81
82
/**
83
- * Holds if this element may be from source.
84
- *
85
- * Note: this predicate is provided for consistency with the libraries
86
- * for other languages, such as Java and Python. In C++, all files are
87
- * classified as source files, so this predicate is always true.
+ * Holds if this element may be from source. This predicate holds for all
+ * elements, except for those in the dummy file, whose name is the empty string.
+ * The dummy file contains declarations that are built directly into the compiler.
88
*/
89
predicate fromSource() { this.getFile().fromSource() }
90
0 commit comments