Skip to content

Commit a3e7fd6

Browse files
committed
Data flow: Enable syntax highlighting in QLDoc snippets
1 parent 843c5c6 commit a3e7fd6

File tree

30 files changed

+60
-60
lines changed

30 files changed

+60
-60
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImpl4.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowImplLocal.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/tainttracking1/TaintTrackingImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private import TaintTrackingParameter::Private
2626
* To create a configuration, extend this class with a subclass whose
2727
* characteristic predicate is a unique singleton string. For example, write
2828
*
29-
* ```
29+
* ```ql
3030
* class MyAnalysisConfiguration extends TaintTracking::Configuration {
3131
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
3232
* // Override `isSource` and `isSink`.
@@ -41,7 +41,7 @@ private import TaintTrackingParameter::Private
4141
* Then, to query whether there is flow between some `source` and `sink`,
4242
* write
4343
*
44-
* ```
44+
* ```ql
4545
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4646
* ```
4747
*

cpp/ql/src/semmle/code/cpp/dataflow/internal/tainttracking2/TaintTrackingImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ private import TaintTrackingParameter::Private
2626
* To create a configuration, extend this class with a subclass whose
2727
* characteristic predicate is a unique singleton string. For example, write
2828
*
29-
* ```
29+
* ```ql
3030
* class MyAnalysisConfiguration extends TaintTracking::Configuration {
3131
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
3232
* // Override `isSource` and `isSink`.
@@ -41,7 +41,7 @@ private import TaintTrackingParameter::Private
4141
* Then, to query whether there is flow between some `source` and `sink`,
4242
* write
4343
*
44-
* ```
44+
* ```ql
4545
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4646
* ```
4747
*

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl2.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

cpp/ql/src/semmle/code/cpp/ir/dataflow/internal/DataFlowImpl3.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DataFlowImplSpecific::Public
1919
* a subclass whose characteristic predicate is a unique singleton string.
2020
* For example, write
2121
*
22-
* ```
22+
* ```ql
2323
* class MyAnalysisConfiguration extends DataFlow::Configuration {
2424
* MyAnalysisConfiguration() { this = "MyAnalysisConfiguration" }
2525
* // Override `isSource` and `isSink`.
@@ -37,7 +37,7 @@ import DataFlowImplSpecific::Public
3737
* Then, to query whether there is flow between some `source` and `sink`,
3838
* write
3939
*
40-
* ```
40+
* ```ql
4141
* exists(MyAnalysisConfiguration cfg | cfg.hasFlow(source, sink))
4242
* ```
4343
*

0 commit comments

Comments
 (0)