You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/language/ql-handbook/language.rst
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -79,11 +79,8 @@ If both a ``queries.xml`` and a ``qlpack.yml`` exist in the same
79
79
directory, the latter takes precedence (and the former is assumed to
80
80
exist for compatibility with older tooling).
81
81
82
-
The query directory itself becomes the first element of the library
83
-
path.
84
-
85
82
In legacy QL tools that don't recognize ``qlpack.yml`` files, the default
86
-
value of the rest of the library path for
83
+
value of the library path for
87
84
each supported language is hard-coded. The tools contain directories within the ODASA
88
85
distribution that define the default CodeQL libraries for the selected
89
86
language. Which language to use depends on the ``language`` attribute
@@ -92,7 +89,7 @@ option to the ODASA CLI.
92
89
93
90
On the other hand, the CodeQL CLI and newer tools based on it (such as
94
91
GitHub Code Scanning and the CodeQL extension for Visual Studio Code)
95
-
construct a default library path using QL packs. For each QL pack
92
+
construct a library path using QL packs. For each QL pack
96
93
added to the library path, the QL packs named in its
97
94
``libraryPathDependencies`` will be subsequently added to the library
98
95
path, and the process continues until all packs have been
@@ -236,7 +233,8 @@ For selection identifiers (``a::b``):
236
233
For qualified identifiers (``a.b``):
237
234
238
235
- Build up a list of *candidate search paths*, consisting of the
239
-
current file's directory, and each of the directories on the
236
+
current file's directory, then the *query directory* of the current
237
+
file, and finally each of the directories on the
240
238
`library path <#library-path>`__ (in order).
241
239
242
240
- Determine the first candidate search path that has a *matching* QLL file for the import directive's qualified name. A QLL file in a candidate search path is said to match a qualified name if, starting from the candidate search path, there is a subdirectory for each successive qualifier in the qualified name, and the directory named by the final qualifier contains a file whose base name matches the qualified name's base name, with the addition of the file extension ``.qll``. The file and directory names are matched case-sensitively, regardless of whether the filesystem is case-sensitive or not.
0 commit comments