Skip to content

Commit c0b2e7d

Browse files
committed
Release v1.1.0
0 parents  commit c0b2e7d

File tree

3,615 files changed

+164670
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,615 files changed

+164670
-0
lines changed

.clang-format

+117
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
---
2+
Language: Cpp
3+
# BasedOnStyle: LLVM
4+
AccessModifierOffset: -2
5+
AlignAfterOpenBracket: Align
6+
AlignConsecutiveAssignments: false
7+
AlignConsecutiveDeclarations: false
8+
AlignEscapedNewlines: Right
9+
AlignOperands: true
10+
AlignTrailingComments: true
11+
AllowAllParametersOfDeclarationOnNextLine: true
12+
AllowShortBlocksOnASingleLine: false
13+
AllowShortCaseLabelsOnASingleLine: false
14+
AllowShortFunctionsOnASingleLine: All
15+
AllowShortIfStatementsOnASingleLine: false
16+
AllowShortLoopsOnASingleLine: false
17+
AlwaysBreakAfterDefinitionReturnType: None
18+
AlwaysBreakAfterReturnType: None
19+
AlwaysBreakBeforeMultilineStrings: false
20+
AlwaysBreakTemplateDeclarations: MultiLine
21+
BinPackArguments: true
22+
BinPackParameters: true
23+
BraceWrapping:
24+
AfterClass: false
25+
AfterControlStatement: false
26+
AfterEnum: false
27+
AfterFunction: false
28+
AfterNamespace: false
29+
AfterObjCDeclaration: false
30+
AfterStruct: false
31+
AfterUnion: false
32+
AfterExternBlock: false
33+
BeforeCatch: false
34+
BeforeElse: false
35+
IndentBraces: false
36+
SplitEmptyFunction: true
37+
SplitEmptyRecord: true
38+
SplitEmptyNamespace: true
39+
BreakBeforeBinaryOperators: None
40+
BreakBeforeBraces: Attach
41+
BreakBeforeInheritanceComma: false
42+
BreakInheritanceList: BeforeColon
43+
BreakBeforeTernaryOperators: true
44+
BreakConstructorInitializersBeforeComma: false
45+
BreakConstructorInitializers: BeforeColon
46+
BreakAfterJavaFieldAnnotations: false
47+
BreakStringLiterals: true
48+
ColumnLimit: 80
49+
CommentPragmas: '^ IWYU pragma:'
50+
CompactNamespaces: false
51+
ConstructorInitializerAllOnOneLineOrOnePerLine: false
52+
ConstructorInitializerIndentWidth: 4
53+
ContinuationIndentWidth: 4
54+
Cpp11BracedListStyle: true
55+
DerivePointerAlignment: false
56+
DisableFormat: false
57+
ExperimentalAutoDetectBinPacking: false
58+
FixNamespaceComments: true
59+
ForEachMacros:
60+
- foreach
61+
- Q_FOREACH
62+
- BOOST_FOREACH
63+
IncludeBlocks: Preserve
64+
IncludeCategories:
65+
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
66+
Priority: 2
67+
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
68+
Priority: 3
69+
- Regex: '.*'
70+
Priority: 1
71+
IncludeIsMainRegex: '(Test)?$'
72+
IndentCaseLabels: false
73+
IndentPPDirectives: None
74+
IndentWidth: 2
75+
IndentWrappedFunctionNames: false
76+
JavaScriptQuotes: Leave
77+
JavaScriptWrapImports: true
78+
KeepEmptyLinesAtTheStartOfBlocks: true
79+
MacroBlockBegin: ''
80+
MacroBlockEnd: ''
81+
MaxEmptyLinesToKeep: 1
82+
NamespaceIndentation: None
83+
ObjCBinPackProtocolList: Auto
84+
ObjCBlockIndentWidth: 2
85+
ObjCSpaceAfterProperty: false
86+
ObjCSpaceBeforeProtocolList: true
87+
PenaltyBreakAssignment: 2
88+
PenaltyBreakBeforeFirstCallParameter: 19
89+
PenaltyBreakComment: 300
90+
PenaltyBreakFirstLessLess: 120
91+
PenaltyBreakString: 1000
92+
PenaltyBreakTemplateDeclaration: 10
93+
PenaltyExcessCharacter: 1000000
94+
PenaltyReturnTypeOnItsOwnLine: 60
95+
PointerAlignment: Right
96+
ReflowComments: true
97+
SortIncludes: true
98+
SortUsingDeclarations: true
99+
SpaceAfterCStyleCast: false
100+
SpaceAfterTemplateKeyword: true
101+
SpaceBeforeAssignmentOperators: true
102+
SpaceBeforeCpp11BracedList: false
103+
SpaceBeforeCtorInitializerColon: true
104+
SpaceBeforeInheritanceColon: true
105+
SpaceBeforeParens: ControlStatements
106+
SpaceBeforeRangeBasedForLoopColon: true
107+
SpaceInEmptyParentheses: false
108+
SpacesBeforeTrailingComments: 1
109+
SpacesInAngles: false
110+
SpacesInContainerLiterals: true
111+
SpacesInCStyleCastParentheses: false
112+
SpacesInParentheses: false
113+
SpacesInSquareBrackets: false
114+
Standard: Cpp11
115+
TabWidth: 8
116+
UseTab: Never
117+
...

.codeqlmanifest.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ "provide": [ "codeql_modules/*/.codeqlmanifest.json", "cpp/.codeqlmanifest.json"] }

.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[*]
2+
end_of_line = lf

.gitattributes

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# Text files will be normalized to LF line endings in the Git database, and will keep those LF line
2+
# endings in the working tree even on Windows. If you make changes below, you should renormalize the
3+
# affected files by running the following from the root of this repo (requires Git 2.16 or greater):
4+
#
5+
# git add --renormalize .
6+
# git status [just to show what files were renormalized]
7+
# git commit -m "Normalize line endings"
8+
9+
# Anything Git auto-detects as text gets normalized and checked out as LF
10+
* text=auto eol=lf
11+
12+
# Explicitly set a bunch of known extensions to text, in case auto detection gets confused.
13+
*.ql text
14+
*.qll text
15+
*.qlref text
16+
*.dbscheme text
17+
*.qhelp text
18+
*.html text
19+
*.htm text
20+
*.xhtml text
21+
*.xhtm text
22+
*.js text
23+
*.mjs text
24+
*.ts text
25+
*.json text
26+
*.yml text
27+
*.yaml text
28+
*.c text
29+
*.cpp text
30+
*.h text
31+
*.hpp text
32+
*.md text
33+
*.stats text
34+
*.xml text
35+
*.sh text
36+
*.pl text
37+
*.java text
38+
*.cs text
39+
*.py text
40+
*.lua text
41+
*.expected text
42+
43+
# Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat
44+
# `* text=auto eol=lf` as `* text eol=lf`
45+
*.png -text
46+
*.jpg -text
47+
*.jpeg -text
48+
*.gif -text
49+
*.dll -text
50+
*.pdb -text
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Report a problem with running the queries
3+
about: Report issues with running the queries
4+
title: ''
5+
labels: bug, customer-report
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Environment**
27+
- CodeQL Coding Standards version: _e.g. 0.7.0_
28+
- CodeQL version: _e.g. CodeQL CLI 2.3.4 with github/codeql at commit xyz, or CodeQL CLI bundle codeql-bundle-20210809_
29+
- Operating System: _e.g. Linux, Mac OS, Windows_
30+
31+
**Additional context**
32+
Add any other context about the problem here
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Report false positives or false negatives
3+
about: Report false positives or false negatives flagged by one or more queries.
4+
title: "`Rule-id`: <describe problem>"
5+
labels: false positive/false negative, customer-report
6+
assignees: ''
7+
8+
---
9+
10+
### Affected rules
11+
- <rule-id-1>
12+
- <rule-id-2>
13+
14+
### Description
15+
16+
<describe the problem>
17+
18+
### Example
19+
<add an example of code that illustrates the problem>
20+
```cpp
21+
void example_function() {
22+
// ...
23+
}
24+
```
+109
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
name: Fetch CodeQL CLI and queries
2+
description: |
3+
Fetches a CodeQL CLI and a copy of the CodeQL standard libraries at the specified versions.
4+
inputs:
5+
codeql-cli-version:
6+
description: |
7+
The version of the CodeQL CLI to be downloaded.
8+
required: false
9+
default: "latest"
10+
11+
codeql-stdlib-version:
12+
description: |
13+
The tag or commit to use from the CodeQL Standard Library
14+
required: false
15+
default: "latest"
16+
17+
add-to-path:
18+
description: |
19+
Add the CodeQL CLI to the system path
20+
required: false
21+
default: "true"
22+
23+
codeql-home:
24+
description: |
25+
The directory to store the CodeQL CLI and Standard Library.
26+
A fixed location can be used for caching the tooling.
27+
required: false
28+
outputs:
29+
codeql-home:
30+
description: "The directory containing the CodeQL CLI and CodeQL Standard Library"
31+
value: ${{ steps.install-codeql.outputs.codeql-home }}
32+
33+
runs:
34+
using: composite
35+
steps:
36+
- name: Install CodeQL
37+
id: install-codeql
38+
env:
39+
RUNNER_OS: ${{ runner.os }}
40+
RUNNER_TEMP: ${{ runner.temp }}
41+
CODEQL_CLI_VERSION: ${{ inputs.codeql-cli-version }}
42+
CODEQL_STDLIB_VERSION: ${{ inputs.codeql-stdlib-version }}
43+
GITHUB_TOKEN: ${{ github.token }}
44+
ADD_TO_PATH: ${{ inputs.add-to-path }}
45+
CODEQL_HOME: ${{ inputs.codeql-home }}
46+
shell: bash
47+
run: |
48+
echo "::debug::Determining CodeQL release for $RUNNER_OS"
49+
case $RUNNER_OS in
50+
"Linux")
51+
RELEASE_PATTERN="codeql-linux64.zip"
52+
;;
53+
"macOS")
54+
RELEASE_PATTERN="codeql-osx64.zip"
55+
;;
56+
"Windows")
57+
RELEASE_PATTERN="codeql-win64.zip"
58+
;;
59+
*)
60+
echo "::error::Unsupported runner operating system $RUNNER_OS"
61+
exit 1
62+
;;
63+
esac
64+
echo "::debug::Selected $RELEASE_PATTERN"
65+
66+
if [ "$CODEQL_HOME" == "" ]
67+
then
68+
echo "::debug::Creating temporary CodeQL home"
69+
CODEQL_HOME=$(mktemp -d -p $RUNNER_TEMP codeql-home-XXXXXXXXXX)
70+
else
71+
echo "::debug::Creating CodeQL home at $CODEQL_HOME"
72+
mkdir -p $CODEQL_HOME
73+
fi
74+
75+
echo "::debug::Changing directory to $CODEQL_HOME"
76+
pushd $CODEQL_HOME
77+
78+
echo "::debug::Downloading CodeQL CLI version $CODEQL_CLI_VERSION"
79+
if [ "$CODEQL_CLI_VERSION" == "latest" ]
80+
then
81+
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern $RELEASE_PATTERN
82+
else
83+
gh release download "v${CODEQL_CLI_VERSION}" --repo https://github.com/github/codeql-cli-binaries --pattern $RELEASE_PATTERN
84+
fi
85+
echo "::debug::Unpacking CodeQL CLI"
86+
unzip -q $RELEASE_PATTERN
87+
88+
echo "::debug::Cloning CodeQL standard library"
89+
git clone https://github.com/github/codeql.git codeql-stdlib
90+
91+
if [ "$CODEQL_STDLIB_VERSION" != "latest" ]
92+
then
93+
pushd codeql-stdlib
94+
echo "::debug::Switching to revision $CODEQL_STDLIB_VERSION"
95+
git checkout $CODEQL_STDLIB_VERSION
96+
popd
97+
fi
98+
99+
if [ "$ADD_TO_PATH" == "true" ]
100+
then
101+
echo "::debug::Adding CodeQL CLI path '$(pwd)/codeql' to system path"
102+
echo "$(pwd)/codeql" >> $GITHUB_PATH
103+
fi
104+
105+
echo "::debug::Setting output parameter codeql-home to $(pwd)"
106+
echo "::set-output name=codeql-home::$(pwd)"
107+
108+
popd
109+
echo "::debug::Done."

0 commit comments

Comments
 (0)