Skip to content

Conversation

MathiasVP
Copy link
Contributor

@MathiasVP MathiasVP added the C++ label May 28, 2020
@MathiasVP MathiasVP requested a review from a team as a code owner May 28, 2020 08:12
@jbj jbj self-assigned this May 28, 2020
Copy link
Contributor

@jbj jbj left a 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.
Copy link
Contributor

@jbj jbj May 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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".

Copy link
Contributor Author

@MathiasVP MathiasVP May 28, 2020

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. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
/** 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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.

@jbj jbj merged commit 688f540 into github:master May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants