From 6592f8c1bb38917f17d5cdca3614129b71d7ab8f Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Tue, 30 Jun 2020 17:33:52 -0400 Subject: [PATCH 1/4] C++: QLDoc cleanup This PR just fixes a few bits of PR feedback from my previous QLDoc PR. --- .../cpp/ir/implementation/aliased_ssa/IRBlock.qll | 12 ++++++++---- .../cpp/ir/implementation/aliased_ssa/IRVariable.qll | 4 ++++ .../ir/implementation/aliased_ssa/Instruction.qll | 2 +- .../code/cpp/ir/implementation/raw/IRBlock.qll | 12 ++++++++---- .../code/cpp/ir/implementation/raw/IRVariable.qll | 4 ++++ .../code/cpp/ir/implementation/raw/Instruction.qll | 2 +- .../cpp/ir/implementation/unaliased_ssa/IRBlock.qll | 12 ++++++++---- .../ir/implementation/unaliased_ssa/IRVariable.qll | 4 ++++ .../ir/implementation/unaliased_ssa/Instruction.qll | 2 +- .../experimental/ir/implementation/raw/IRBlock.qll | 12 ++++++++---- .../ir/implementation/raw/IRVariable.qll | 4 ++++ .../ir/implementation/raw/Instruction.qll | 2 +- .../ir/implementation/unaliased_ssa/IRBlock.qll | 12 ++++++++---- .../ir/implementation/unaliased_ssa/IRVariable.qll | 4 ++++ .../ir/implementation/unaliased_ssa/Instruction.qll | 2 +- 15 files changed, 65 insertions(+), 25 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll index f0ec0683bd64..6c8e46ef91d0 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll @@ -27,6 +27,8 @@ class IRBlockBase extends TIRBlock { final Language::Location getLocation() { result = getFirstInstruction().getLocation() } /** + * INTERNAL: Do not use. + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -34,6 +36,8 @@ class IRBlockBase extends TIRBlock { final string getUniqueId() { result = getFirstInstruction(this).getUniqueId() } /** + * INTERNAL: Do not use. + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. @@ -67,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Get the instructions in this block, including `Phi` instructions. + * Gets an instructions in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or @@ -111,12 +115,12 @@ class IRBlockBase extends TIRBlock { */ class IRBlock extends IRBlockBase { /** - * Gets the blocks to which control flows directly from this block. + * Gets a block to which control flows directly from this block. */ final IRBlock getASuccessor() { blockSuccessor(this, result) } /** - * Gets the blocks from which control flows directly to this block. + * Gets a block from which control flows directly to this block. */ final IRBlock getAPredecessor() { blockSuccessor(result, this) } @@ -156,7 +160,7 @@ class IRBlock extends IRBlockBase { final predicate dominates(IRBlock block) { strictlyDominates(block) or this = block } /** - * Gets the set of blocks on the dominance frontier of this block. + * Gets a block on the dominance frontier of this block. * * The dominance frontier of block `A` is the set of blocks `B` such that block `A` does not * dominate block `B`, but block `A` does dominate an immediate predecessor of block `B`. diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll index d317421c2422..4d1327676253 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll @@ -164,6 +164,8 @@ class IRGeneratedVariable extends IRVariable { override string getUniqueId() { none() } /** + * INTERNAL: Do not use. + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -175,6 +177,8 @@ class IRGeneratedVariable extends IRVariable { } /** + * INTERNAL: Do not use. + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll index 0d2ad2d3beab..0fd31dbd9c37 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/Instruction.qll @@ -1989,7 +1989,7 @@ class BuiltInOperationInstruction extends Instruction { } /** - * Gets the language-specific `BuildInOperation` object that specifies the operation that is + * Gets the language-specific `BuiltInOperation` object that specifies the operation that is * performed by this instruction. */ final Language::BuiltInOperation getBuiltInOperation() { result = operation } diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll index f0ec0683bd64..6c8e46ef91d0 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll @@ -27,6 +27,8 @@ class IRBlockBase extends TIRBlock { final Language::Location getLocation() { result = getFirstInstruction().getLocation() } /** + * INTERNAL: Do not use. + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -34,6 +36,8 @@ class IRBlockBase extends TIRBlock { final string getUniqueId() { result = getFirstInstruction(this).getUniqueId() } /** + * INTERNAL: Do not use. + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. @@ -67,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Get the instructions in this block, including `Phi` instructions. + * Gets an instructions in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or @@ -111,12 +115,12 @@ class IRBlockBase extends TIRBlock { */ class IRBlock extends IRBlockBase { /** - * Gets the blocks to which control flows directly from this block. + * Gets a block to which control flows directly from this block. */ final IRBlock getASuccessor() { blockSuccessor(this, result) } /** - * Gets the blocks from which control flows directly to this block. + * Gets a block from which control flows directly to this block. */ final IRBlock getAPredecessor() { blockSuccessor(result, this) } @@ -156,7 +160,7 @@ class IRBlock extends IRBlockBase { final predicate dominates(IRBlock block) { strictlyDominates(block) or this = block } /** - * Gets the set of blocks on the dominance frontier of this block. + * Gets a block on the dominance frontier of this block. * * The dominance frontier of block `A` is the set of blocks `B` such that block `A` does not * dominate block `B`, but block `A` does dominate an immediate predecessor of block `B`. diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll index d317421c2422..4d1327676253 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll @@ -164,6 +164,8 @@ class IRGeneratedVariable extends IRVariable { override string getUniqueId() { none() } /** + * INTERNAL: Do not use. + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -175,6 +177,8 @@ class IRGeneratedVariable extends IRVariable { } /** + * INTERNAL: Do not use. + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll index 0d2ad2d3beab..0fd31dbd9c37 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/Instruction.qll @@ -1989,7 +1989,7 @@ class BuiltInOperationInstruction extends Instruction { } /** - * Gets the language-specific `BuildInOperation` object that specifies the operation that is + * Gets the language-specific `BuiltInOperation` object that specifies the operation that is * performed by this instruction. */ final Language::BuiltInOperation getBuiltInOperation() { result = operation } diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll index f0ec0683bd64..6c8e46ef91d0 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll @@ -27,6 +27,8 @@ class IRBlockBase extends TIRBlock { final Language::Location getLocation() { result = getFirstInstruction().getLocation() } /** + * INTERNAL: Do not use. + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -34,6 +36,8 @@ class IRBlockBase extends TIRBlock { final string getUniqueId() { result = getFirstInstruction(this).getUniqueId() } /** + * INTERNAL: Do not use. + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. @@ -67,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Get the instructions in this block, including `Phi` instructions. + * Gets an instructions in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or @@ -111,12 +115,12 @@ class IRBlockBase extends TIRBlock { */ class IRBlock extends IRBlockBase { /** - * Gets the blocks to which control flows directly from this block. + * Gets a block to which control flows directly from this block. */ final IRBlock getASuccessor() { blockSuccessor(this, result) } /** - * Gets the blocks from which control flows directly to this block. + * Gets a block from which control flows directly to this block. */ final IRBlock getAPredecessor() { blockSuccessor(result, this) } @@ -156,7 +160,7 @@ class IRBlock extends IRBlockBase { final predicate dominates(IRBlock block) { strictlyDominates(block) or this = block } /** - * Gets the set of blocks on the dominance frontier of this block. + * Gets a block on the dominance frontier of this block. * * The dominance frontier of block `A` is the set of blocks `B` such that block `A` does not * dominate block `B`, but block `A` does dominate an immediate predecessor of block `B`. diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll index d317421c2422..4d1327676253 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll @@ -164,6 +164,8 @@ class IRGeneratedVariable extends IRVariable { override string getUniqueId() { none() } /** + * INTERNAL: Do not use. + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -175,6 +177,8 @@ class IRGeneratedVariable extends IRVariable { } /** + * INTERNAL: Do not use. + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll index 0d2ad2d3beab..0fd31dbd9c37 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/Instruction.qll @@ -1989,7 +1989,7 @@ class BuiltInOperationInstruction extends Instruction { } /** - * Gets the language-specific `BuildInOperation` object that specifies the operation that is + * Gets the language-specific `BuiltInOperation` object that specifies the operation that is * performed by this instruction. */ final Language::BuiltInOperation getBuiltInOperation() { result = operation } diff --git a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll index f0ec0683bd64..6c8e46ef91d0 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll @@ -27,6 +27,8 @@ class IRBlockBase extends TIRBlock { final Language::Location getLocation() { result = getFirstInstruction().getLocation() } /** + * INTERNAL: Do not use. + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -34,6 +36,8 @@ class IRBlockBase extends TIRBlock { final string getUniqueId() { result = getFirstInstruction(this).getUniqueId() } /** + * INTERNAL: Do not use. + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. @@ -67,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Get the instructions in this block, including `Phi` instructions. + * Gets an instructions in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or @@ -111,12 +115,12 @@ class IRBlockBase extends TIRBlock { */ class IRBlock extends IRBlockBase { /** - * Gets the blocks to which control flows directly from this block. + * Gets a block to which control flows directly from this block. */ final IRBlock getASuccessor() { blockSuccessor(this, result) } /** - * Gets the blocks from which control flows directly to this block. + * Gets a block from which control flows directly to this block. */ final IRBlock getAPredecessor() { blockSuccessor(result, this) } @@ -156,7 +160,7 @@ class IRBlock extends IRBlockBase { final predicate dominates(IRBlock block) { strictlyDominates(block) or this = block } /** - * Gets the set of blocks on the dominance frontier of this block. + * Gets a block on the dominance frontier of this block. * * The dominance frontier of block `A` is the set of blocks `B` such that block `A` does not * dominate block `B`, but block `A` does dominate an immediate predecessor of block `B`. diff --git a/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll b/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll index d317421c2422..4d1327676253 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll @@ -164,6 +164,8 @@ class IRGeneratedVariable extends IRVariable { override string getUniqueId() { none() } /** + * INTERNAL: Do not use. + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -175,6 +177,8 @@ class IRGeneratedVariable extends IRVariable { } /** + * INTERNAL: Do not use. + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll b/csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll index 0d2ad2d3beab..0fd31dbd9c37 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/Instruction.qll @@ -1989,7 +1989,7 @@ class BuiltInOperationInstruction extends Instruction { } /** - * Gets the language-specific `BuildInOperation` object that specifies the operation that is + * Gets the language-specific `BuiltInOperation` object that specifies the operation that is * performed by this instruction. */ final Language::BuiltInOperation getBuiltInOperation() { result = operation } diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll index f0ec0683bd64..6c8e46ef91d0 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll @@ -27,6 +27,8 @@ class IRBlockBase extends TIRBlock { final Language::Location getLocation() { result = getFirstInstruction().getLocation() } /** + * INTERNAL: Do not use. + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -34,6 +36,8 @@ class IRBlockBase extends TIRBlock { final string getUniqueId() { result = getFirstInstruction(this).getUniqueId() } /** + * INTERNAL: Do not use. + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. @@ -67,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Get the instructions in this block, including `Phi` instructions. + * Gets an instructions in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or @@ -111,12 +115,12 @@ class IRBlockBase extends TIRBlock { */ class IRBlock extends IRBlockBase { /** - * Gets the blocks to which control flows directly from this block. + * Gets a block to which control flows directly from this block. */ final IRBlock getASuccessor() { blockSuccessor(this, result) } /** - * Gets the blocks from which control flows directly to this block. + * Gets a block from which control flows directly to this block. */ final IRBlock getAPredecessor() { blockSuccessor(result, this) } @@ -156,7 +160,7 @@ class IRBlock extends IRBlockBase { final predicate dominates(IRBlock block) { strictlyDominates(block) or this = block } /** - * Gets the set of blocks on the dominance frontier of this block. + * Gets a block on the dominance frontier of this block. * * The dominance frontier of block `A` is the set of blocks `B` such that block `A` does not * dominate block `B`, but block `A` does dominate an immediate predecessor of block `B`. diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll index d317421c2422..4d1327676253 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll @@ -164,6 +164,8 @@ class IRGeneratedVariable extends IRVariable { override string getUniqueId() { none() } /** + * INTERNAL: Do not use. + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -175,6 +177,8 @@ class IRGeneratedVariable extends IRVariable { } /** + * INTERNAL: Do not use. + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll index 0d2ad2d3beab..0fd31dbd9c37 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/Instruction.qll @@ -1989,7 +1989,7 @@ class BuiltInOperationInstruction extends Instruction { } /** - * Gets the language-specific `BuildInOperation` object that specifies the operation that is + * Gets the language-specific `BuiltInOperation` object that specifies the operation that is * performed by this instruction. */ final Language::BuiltInOperation getBuiltInOperation() { result = operation } From 10bbd566d41dfabc9842868fd60c4d13b23dd733 Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Wed, 1 Jul 2020 02:28:53 -0400 Subject: [PATCH 2/4] C++: Autoformat --- .../code/cpp/ir/implementation/aliased_ssa/IRVariable.qll | 4 ++-- .../src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll | 4 ++-- .../code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll | 4 ++-- .../ql/src/experimental/ir/implementation/raw/IRVariable.qll | 4 ++-- .../ir/implementation/unaliased_ssa/IRVariable.qll | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll index 4d1327676253..146fc2707383 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRVariable.qll @@ -165,7 +165,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -178,7 +178,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll index 4d1327676253..146fc2707383 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRVariable.qll @@ -165,7 +165,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -178,7 +178,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll index 4d1327676253..146fc2707383 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRVariable.qll @@ -165,7 +165,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -178,7 +178,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll b/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll index 4d1327676253..146fc2707383 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/IRVariable.qll @@ -165,7 +165,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -178,7 +178,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll index 4d1327676253..146fc2707383 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRVariable.qll @@ -165,7 +165,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets a string containing the source code location of the AST that generated this variable. * * This is used by debugging and printing code only. @@ -178,7 +178,7 @@ class IRGeneratedVariable extends IRVariable { /** * INTERNAL: Do not use. - * + * * Gets the string that is combined with the location of the variable to generate the string * representation of this variable. * From 566d7fad639cc0ee1819615a4c24c2fac27d45a8 Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Wed, 1 Jul 2020 10:14:35 -0400 Subject: [PATCH 3/4] C++: Autoformat some more --- .../semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll | 4 ++-- cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll | 4 ++-- .../code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll | 4 ++-- csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll | 4 ++-- .../experimental/ir/implementation/unaliased_ssa/IRBlock.qll | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll index 6c8e46ef91d0..be7c445bd537 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll @@ -28,7 +28,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -37,7 +37,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll index 6c8e46ef91d0..be7c445bd537 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll @@ -28,7 +28,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -37,7 +37,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll index 6c8e46ef91d0..be7c445bd537 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll @@ -28,7 +28,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -37,7 +37,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. diff --git a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll index 6c8e46ef91d0..be7c445bd537 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll @@ -28,7 +28,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -37,7 +37,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll index 6c8e46ef91d0..be7c445bd537 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll @@ -28,7 +28,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets a string that uniquely identifies this block within its enclosing function. * * This predicate is used by debugging and printing code only. @@ -37,7 +37,7 @@ class IRBlockBase extends TIRBlock { /** * INTERNAL: Do not use. - * + * * Gets the zero-based index of the block within its function. * * This predicate is used by debugging and printing code only. From f0215d1748c4782fcd2eeff94c5f448149de0840 Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Wed, 1 Jul 2020 11:57:56 -0400 Subject: [PATCH 4/4] C++: Fix typo --- .../semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll | 2 +- cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll | 2 +- .../semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll | 2 +- csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll | 2 +- .../experimental/ir/implementation/unaliased_ssa/IRBlock.qll | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll index be7c445bd537..d827ed3cf82d 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/aliased_ssa/IRBlock.qll @@ -71,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Gets an instructions in this block. This includes `Phi` instructions. + * Gets an instruction in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll index be7c445bd537..d827ed3cf82d 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/raw/IRBlock.qll @@ -71,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Gets an instructions in this block. This includes `Phi` instructions. + * Gets an instruction in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or diff --git a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll index be7c445bd537..d827ed3cf82d 100644 --- a/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/cpp/ql/src/semmle/code/cpp/ir/implementation/unaliased_ssa/IRBlock.qll @@ -71,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Gets an instructions in this block. This includes `Phi` instructions. + * Gets an instruction in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or diff --git a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll index be7c445bd537..d827ed3cf82d 100644 --- a/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/raw/IRBlock.qll @@ -71,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Gets an instructions in this block. This includes `Phi` instructions. + * Gets an instruction in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or diff --git a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll index be7c445bd537..d827ed3cf82d 100644 --- a/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll +++ b/csharp/ql/src/experimental/ir/implementation/unaliased_ssa/IRBlock.qll @@ -71,7 +71,7 @@ class IRBlockBase extends TIRBlock { } /** - * Gets an instructions in this block. This includes `Phi` instructions. + * Gets an instruction in this block. This includes `Phi` instructions. */ final Instruction getAnInstruction() { result = getInstruction(_) or