Commit b55526a
committed
QL code and tests for C#/C++/JavaScript.
0 parents commit b55526a
File tree
10,684 files changed
+581163
-0
lines changed- change-notes/1.18
- cpp/ql
- src
- .vs
- Architecture
- General Class-Level Information
- General Namespace-Level Information
- General Top-Level Information
- Refactoring Opportunities
- Best Practices
- Exceptions
- Hiding
- Likely Errors
- Magic Constants
- Unused Entities
- CPython
- Critical
- Documentation
- Header Cleanup
- JPL_C
- LOC-2
- Rule 03
- Rule 04
- Rule 05
- Rule 07
- Rule 09
- Rule 11
- Rule 12
- LOC-3
- Rule 13
- Rule 14
- Rule 15
- Rule 16
- Rule 17
- Rule 18
- Rule 19
- LOC-4
- Rule 20
- Rule 21
- Rule 22
- Rule 23
- Rule 24
- Rule 25
- Rule 26
- Rule 27
- Rule 28
- Rule 29
- Rule 30
- Rule 31
- Likely Bugs
- Arithmetic
- Conversion
- Format
- Likely Typos
- Memory Management
- Padding
- OO
- META-INF
- Metrics
- Classes
- Dependencies
- External
- Files
- Functions
- History
- Internal
- Namespaces
- Microsoft
- PointsTo
- Power of 10
- Rule 1
- Rule 2
- Rule 3
- Rule 4
- Rule 5
- Rule 6
- Rule 7
- Rule 8
- Rule 9
- Security/CWE
- CWE-022
- CWE-078
- CWE-079
- CWE-089
- CWE-114
- CWE-119
- CWE-120
- CWE-121
- CWE-129
- CWE-131
- CWE-134
- CWE-170
- CWE-190
- CWE-290
- CWE-311
- CWE-313
- CWE-327
- CWE-367
- CWE-468
- CWE-497
- CWE-676
- CWE-732
- CWE-764
- CWE-807
- CWE-835
- external
- examples/filters
- tests
- filters
- jsf
- 3.02 Code Size and Complexity
- 4.04 Environment
- 4.05 Libraries
- 4.06 Pre-Processing Directives
- 4.07 Header Files
- 4.08 Implementation Files
- 4.09 Style
- 4.10 Classes
- 4.11 Namespaces
- 4.12 Templates
- 4.13 Functions
- 4.14 Comments
- 4.15 Declarations and Definitions
- 4.16 Initialization
- 4.17 Types
- 4.18 Constants
- 4.19 Variables
- 4.20 Unions and Bit Fields
- 4.21 Operators
- 4.22 Pointers and References
- 4.23 Type Conversions
- 4.24 Control Flow Structures
- 4.25 Expressions
- 4.26 Memory Allocation
- 4.27 Fault Handling
- 4.28 Portable Code
- lib/section_4_21_Operators
- semmle
- code/cpp
- commons
- unix
- controlflow
- internal
- dataflow
- internal
- exprs
- headers
- internal
- ir
- internal
- metrics
- models
- implementations
- interfaces
- padding
- pointsto
- rangeanalysis
- security
- ssa
- internal
- aliased_ssa
- ssa
- stmts
- valuenumbering
- files
- uml
- tools
- test
- duplication-tests
- duplicate_functions
- tokenising
- examples
- expressions
- lgtm-query-examples
- header-variant-tests
- clang-pch
- deduplication
- functions-in-headers
- headermaps
- iquote
- dir1
- dir2
- isysroot
- other
- usr/include
- line-directives-in-functions
- microsoft-pch
- multi-target-includes
- subdir1
- subdir2
- type_variants
- library-tests
- CPP-205
- CPP-206
- CPP-207
- __builtin_constant_p
- abi
- access
- DerivationAccess
- FieldAccess
- MemberOrFriend
- canAccessClass
- canAccessMember
- noPublic
- alias_templates
- aliased_ssa
- constants
- escape
- allocators
- anachronisms
- arguments
- array_expr
- array_sizes
- atomic
- attributes
- alignment
- availability
- deprecated_with_msg
- enumerators
- exclusive_locks_required
- gnu_visibility
- ms_repeated
- nonnull
- routine_attributes
- sal
- stmt_attributes
- type_attributes
- var_attributes
- basic_blocks
- blocks
- capture
- cpp
- c
- deduplication
- bugs/odasa-2709
- builtins
- builtins
- edg
- functions_file
- type_traits
- types
- c++_exceptions
- c11_generic
- c_overload
- calls
- cast_specifiers
- clang_builtin_macros
- clang_c99_default
- clang_cpp14_17
- clang_ms
- classes
- base_classes
- classes
- defcon
- derivations
- derivations
- offsets
- structlikeclass
- variadic
- comments
- binding
- comments
- compiler_generated
- complex_numbers
- complexity
- conditions
- constants
- constants
- initializerexpr
- initializers
- strlen
- controlflow_stresstest
- controlflow
- assume
- controlflow
- dominance
- exits
- guards
- loopentrycondition
- primitives
- conversions
- cpp11_g
- cpp_builtin_types
- bool
- wchar_t
- ctorinits
- dataflow
- additional-flow-to-parameter
- dataflow-edge-tests
- dataflow-tests
- recursion
- stackaddress
- taint-tests
- variable
- declarationEntry
- declarationEntry
- local
- more
- template
- declaration
- declstmt
- default_parameters
- defuse
- depends_addressable
- depends_friends
- depends_initializers
- deprecated
- derived_types
- destructors
- diagnostics
- digraphs
- enums
- enums
- multi_file
- typedefs
- environment
- exprs_basic
- exprs_cast
- exprs
- comparison_operation
- min_max
- unary_operation
- unevaluated
- value_categories
- fields
- fields
- segfault
- files
- floats
- float128
- floats
- friends
- friends
- loop
- funcdname
- function_try_stmt
- functionpointerish
- functions
- arguments
- fde_get_block
- functions
- generated
- override
- qualifiers
- unused_mut
- unused
- includes
- include_next
- a
- b
- includes
- non_existent
- instantiations
- ir
- constant_func
- ir
- lambdas
- calling_conv
- captures
- cfg
- languages
- large_expressions
- literal_locations
- literals
- aggregate_literals
- aggregates
- literals
- uuidof
- locations
- aggregate_literals
- calls
- constants
- enum_initialisers
- overloaded_operators
- udt_implicit_conversions
- loops
- lossy_pointer_cast
- macros
- affects
- arguments
- inmacroexpansion
- macros
- redefines
- members
- getters
- members
- templates
- multiple_declarations
- conditional_field
- functions
- macroinvocations
- preprocbranch
- naked_attribute
- name_qualifiers
- namespaces
- namespaces
- same_name
- nested_functions/nested_functions
- noexcept
- copy_from_prototype
- noexcept
- nulltermination
- numlines
- odasa2646
- operators
- opts
- padding
- parameters
- catch
- parameters
- toStrings
- permissive
- pod
- pointsto
- address-of-assign
- arguments
- basic
- more
- new-virtual
- predefines
- preprocessor
- dependent_defs
- hashing
- hashing
- undef
- include
- linedirective
- macroinvocations
- pragma
- preprocessor
- more_headers
- proxy_class
- ptr_to_member/segfault
- qualifiers/class-enum
- queries
- bitwise_sign_check
- expr_has_no_effect
- jsf97
- todo_fixme
- question_mark_colon
- rangeanalysis
- RangeSSA
- rangeanalysis
- reachability
- rvalueCast
- rvaluerefs
- sal
- scanf
- scopes
- includes
- parents
- scopes
- sideEffects
- exprs
- functions
- stmts
- special_members
- detect
- generated_copy
- specifiers2
- specifiers3
- specifiers
- static_assert
- static_cast
- stmt_expr
- stmt
- break
- computed_goto
- generated_blocks
- stmt
- store_pointer_to_member
- strcat
- string_analysis
- string_literals_nul
- string_literals
- structs
- compatible_cpp
- compatible_c
- compatible_routines
- compatible_variables
- incomplete_definition
- mutual_recursion
- structs
- sub_basic_blocks
- switch_cfg
- switch
- synchronization
- templates
- CPP-202
- CPP-203
- CPP-204
- CPP-223
- ambiguous_cctor
- bug
- decls
- destructors
- diagnostics
- extern
- friends
- functions
- incomplete_instantiations
- instantiation_directive
- instantiations_functions
- isfromtemplateinstantiation
- prototype_bodies
- segfault2
- segfault
- type_instantiations
- typedefs
- variables
- ti_compiler
- type_sizes
- type_strings
- typedefs
- typename
- types
- __wchar_t
- alignof
- integral_types_ms
- integral_types
- pointertypes
- refersTo
- scope
- segfault
- sizeof
- typeid
- types
- unspecified
- wchar_t_typedef
- udl
- unions
- unnamed
- unspecified_type
- types
- unspecified_type
- usings
- valuenumbering/GlobalValueNumbering
- variables
- global
- variables
- vector_types
- virtual_functions
- cfg
- virtual_functions
- vla
- query-tests
- AlertSuppression
- Architecture
- FeatureEnvy
- InappropriateIntimacy
- Refactoring Opportunities
- ClassesWithManyFields
- ComplexFunctions
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
10,684 files changed
+581163
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments