-
Notifications
You must be signed in to change notification settings - Fork 1.8k
C++: QLDoc for BasicBlock, ControlFlowGraph and Dataflow #3582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for some grammatical nit-picking.
@@ -1,3 +1,8 @@ | |||
/** | |||
* Provides a library for reasoning about control-flow at the granularity of basic blocks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Provides a library for reasoning about control-flow at the granularity of basic blocks. | |
* Provides a library for reasoning about control flow at the granularity of basic blocks. |
https://wiki.semmle.com/display/SSG/Hyphenation
Hyphenation in English compound phrases is like placing parentheses in code. Right associativity is the default, and hyphens bind stronger than spaces. Example "The control-flow library describes control flow".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an explanation I've never heard before, but it makes complete sense!
ControlFlowNode getNode(int pos) { basic_block_member(result, this, pos) } | ||
|
||
/** Gets all `ControlFlowNode`s in this basic block. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** Gets all `ControlFlowNode`s in this basic block. */ | |
/** Gets a `ControlFlowNode` in this basic block. */ |
See https://wiki.semmle.com/pages/viewpage.action?pageId=74613282#QLDocStyleGuide-QLDocforpredicates.
Also in the two predicates below.
@@ -1,3 +1,8 @@ | |||
/** | |||
* Provides a library for reasoning about control-flow at the granularity of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Provides a library for reasoning about control-flow at the granularity of | |
* Provides a library for reasoning about control flow at the granularity of |
But the hyphen in the next line is correct.
Part of https://github.com/github/codeql-c-analysis-team/issues/40.