Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Jul 13, 2022
0 parents commit c0b2e7d
Show file tree
Hide file tree
Showing 3,615 changed files with 164,670 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
117 changes: 117 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: false
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: false
BeforeElse: false
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Attach
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: false
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|gmock|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '(Test)?$'
IndentCaseLabels: false
IndentPPDirectives: None
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Right
ReflowComments: true
SortIncludes: true
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
TabWidth: 8
UseTab: Never
...
1 change: 1 addition & 0 deletions .codeqlmanifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "provide": [ "codeql_modules/*/.codeqlmanifest.json", "cpp/.codeqlmanifest.json"] }
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[*]
end_of_line = lf
50 changes: 50 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Text files will be normalized to LF line endings in the Git database, and will keep those LF line
# endings in the working tree even on Windows. If you make changes below, you should renormalize the
# affected files by running the following from the root of this repo (requires Git 2.16 or greater):
#
# git add --renormalize .
# git status [just to show what files were renormalized]
# git commit -m "Normalize line endings"

# Anything Git auto-detects as text gets normalized and checked out as LF
* text=auto eol=lf

# Explicitly set a bunch of known extensions to text, in case auto detection gets confused.
*.ql text
*.qll text
*.qlref text
*.dbscheme text
*.qhelp text
*.html text
*.htm text
*.xhtml text
*.xhtm text
*.js text
*.mjs text
*.ts text
*.json text
*.yml text
*.yaml text
*.c text
*.cpp text
*.h text
*.hpp text
*.md text
*.stats text
*.xml text
*.sh text
*.pl text
*.java text
*.cs text
*.py text
*.lua text
*.expected text

# Explicitly set a bunch of known extensions to binary, because Git < 2.10 will treat
# `* text=auto eol=lf` as `* text eol=lf`
*.png -text
*.jpg -text
*.jpeg -text
*.gif -text
*.dll -text
*.pdb -text
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: Report a problem with running the queries
about: Report issues with running the queries
title: ''
labels: bug, customer-report
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Environment**
- CodeQL Coding Standards version: _e.g. 0.7.0_
- CodeQL version: _e.g. CodeQL CLI 2.3.4 with github/codeql at commit xyz, or CodeQL CLI bundle codeql-bundle-20210809_
- Operating System: _e.g. Linux, Mac OS, Windows_

**Additional context**
Add any other context about the problem here
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Report false positives or false negatives
about: Report false positives or false negatives flagged by one or more queries.
title: "`Rule-id`: <describe problem>"
labels: false positive/false negative, customer-report
assignees: ''

---

### Affected rules
- <rule-id-1>
- <rule-id-2>

### Description

<describe the problem>

### Example
<add an example of code that illustrates the problem>
```cpp
void example_function() {
// ...
}
```
109 changes: 109 additions & 0 deletions .github/actions/install-codeql/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Fetch CodeQL CLI and queries
description: |
Fetches a CodeQL CLI and a copy of the CodeQL standard libraries at the specified versions.
inputs:
codeql-cli-version:
description: |
The version of the CodeQL CLI to be downloaded.
required: false
default: "latest"

codeql-stdlib-version:
description: |
The tag or commit to use from the CodeQL Standard Library
required: false
default: "latest"

add-to-path:
description: |
Add the CodeQL CLI to the system path
required: false
default: "true"

codeql-home:
description: |
The directory to store the CodeQL CLI and Standard Library.
A fixed location can be used for caching the tooling.
required: false
outputs:
codeql-home:
description: "The directory containing the CodeQL CLI and CodeQL Standard Library"
value: ${{ steps.install-codeql.outputs.codeql-home }}

runs:
using: composite
steps:
- name: Install CodeQL
id: install-codeql
env:
RUNNER_OS: ${{ runner.os }}
RUNNER_TEMP: ${{ runner.temp }}
CODEQL_CLI_VERSION: ${{ inputs.codeql-cli-version }}
CODEQL_STDLIB_VERSION: ${{ inputs.codeql-stdlib-version }}
GITHUB_TOKEN: ${{ github.token }}
ADD_TO_PATH: ${{ inputs.add-to-path }}
CODEQL_HOME: ${{ inputs.codeql-home }}
shell: bash
run: |
echo "::debug::Determining CodeQL release for $RUNNER_OS"
case $RUNNER_OS in
"Linux")
RELEASE_PATTERN="codeql-linux64.zip"
;;
"macOS")
RELEASE_PATTERN="codeql-osx64.zip"
;;
"Windows")
RELEASE_PATTERN="codeql-win64.zip"
;;
*)
echo "::error::Unsupported runner operating system $RUNNER_OS"
exit 1
;;
esac
echo "::debug::Selected $RELEASE_PATTERN"
if [ "$CODEQL_HOME" == "" ]
then
echo "::debug::Creating temporary CodeQL home"
CODEQL_HOME=$(mktemp -d -p $RUNNER_TEMP codeql-home-XXXXXXXXXX)
else
echo "::debug::Creating CodeQL home at $CODEQL_HOME"
mkdir -p $CODEQL_HOME
fi
echo "::debug::Changing directory to $CODEQL_HOME"
pushd $CODEQL_HOME
echo "::debug::Downloading CodeQL CLI version $CODEQL_CLI_VERSION"
if [ "$CODEQL_CLI_VERSION" == "latest" ]
then
gh release download --repo https://github.com/github/codeql-cli-binaries --pattern $RELEASE_PATTERN
else
gh release download "v${CODEQL_CLI_VERSION}" --repo https://github.com/github/codeql-cli-binaries --pattern $RELEASE_PATTERN
fi
echo "::debug::Unpacking CodeQL CLI"
unzip -q $RELEASE_PATTERN
echo "::debug::Cloning CodeQL standard library"
git clone https://github.com/github/codeql.git codeql-stdlib
if [ "$CODEQL_STDLIB_VERSION" != "latest" ]
then
pushd codeql-stdlib
echo "::debug::Switching to revision $CODEQL_STDLIB_VERSION"
git checkout $CODEQL_STDLIB_VERSION
popd
fi
if [ "$ADD_TO_PATH" == "true" ]
then
echo "::debug::Adding CodeQL CLI path '$(pwd)/codeql' to system path"
echo "$(pwd)/codeql" >> $GITHUB_PATH
fi
echo "::debug::Setting output parameter codeql-home to $(pwd)"
echo "::set-output name=codeql-home::$(pwd)"
popd
echo "::debug::Done."
Loading

0 comments on commit c0b2e7d

Please sign in to comment.