RegexBackedCSourceParserTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Changed C/C++ dependency analysis to correctly handle token concatenation expressions in macro function bodies that are invoked from another macro function.

    • -16
    • +34
    ./RegexBackedCSourceParserTest.groovy
  1. … 12 more files in changeset.
Changed C/C++ dependency analysis to understand preprocessor token concatenation expressions in macro bodies (eg X##Y).

    • -11
    • +78
    ./RegexBackedCSourceParserTest.groovy
  1. … 15 more files in changeset.
Changed C/C++ dependency analysis to handle "function-like" macros whose value is a macro function call.

    • -0
    • +18
    ./RegexBackedCSourceParserTest.groovy
  1. … 9 more files in changeset.
Changed C/C++ dependency analysis to handle more kinds of macro function call parameters. Specifically, handle parameters that are quoted strings, system include paths and macro function calls, in addition to macros (that were already handled).

    • -13
    • +18
    ./RegexBackedCSourceParserTest.groovy
  1. … 15 more files in changeset.
Changed C/C++ dependency analysis to handle macros whose body is a macro function call.

    • -18
    • +68
    ./RegexBackedCSourceParserTest.groovy
  1. … 21 more files in changeset.
Changed C/C++ dependency analysis to start to understand "function-like" macros that take parameters. Specifically, handle function invocations whose parameters are macro names on functions whose bodies are either a constant, a macro or one of the function parameters.

    • -9
    • +79
    ./RegexBackedCSourceParserTest.groovy
  1. … 17 more files in changeset.
Changed C/C++ dependency analysis to extract the parameters of a call to a 'function-like' macro. These aren't used yet.

Also slightly improved the "could not find this include" info message.

    • -17
    • +70
    ./RegexBackedCSourceParserTest.groovy
  1. … 23 more files in changeset.
Recognize "function-like" macros with parameters during native compile include file dependency analysis. These are not resolved yet, so when referenced by an include directive result in an unresolved include file (and so all of the include directories are considered inputs of the compilation).

    • -18
    • +86
    ./RegexBackedCSourceParserTest.groovy
  1. … 9 more files in changeset.
Separated the types to represent 'object-like' macros and 'function-like' macros in parsed native source.

    • -8
    • +24
    ./RegexBackedCSourceParserTest.groovy
  1. … 19 more files in changeset.
Handle "function-like" macros with no parameters during native compile include file dependency analysis.

    • -24
    • +124
    ./RegexBackedCSourceParserTest.groovy
  1. … 11 more files in changeset.
Expand macro values when resolving include files during native compile include file dependency analysis.

Also recognize "function-like" macros used in include directives and macro bodies, for example `#include HEADER()`. These aren't expanded yet and so when referenced by an include directive the include will be treated as unresolved.

    • -11
    • +53
    ./RegexBackedCSourceParserTest.groovy
  1. … 11 more files in changeset.
Don't retain the value of a c preprocessor #define directive for when the value is not something that can be resolved to an include value.

    • -11
    • +48
    ./RegexBackedCSourceParserTest.groovy
  1. … 8 more files in changeset.
Fixed an issue in native compile dependency analysis where a macro is defined in an include file already included by the current source file.

  1. … 12 more files in changeset.
Changed the C/C++ parser to recognize macro definitions. These aren't used in the dependency analysis yet.

    • -9
    • +70
    ./RegexBackedCSourceParserTest.groovy
  1. … 11 more files in changeset.
Removing string views from SourceIncludes

+review REVIEW-5419

  1. … 9 more files in changeset.
Reworking DefaultSourceIncludes to be a bit smarter and remove SourceDetails

+review REVIEW-5419

    • -28
    • +33
    ./RegexBackedCSourceParserTest.groovy
  1. … 18 more files in changeset.
Requiring prefix header to be the first declared header in a source file in order to use PCH

+review REVIEW-5419

    • -1
    • +19
    ./RegexBackedCSourceParserTest.groovy
  1. … 8 more files in changeset.
Fix regex for finding #includes

Allow no whitespace between #directive and file name.

+review REVIEW-5278

  1. … 1 more file in changeset.
Renamed org.gradle.language.nativebase -> org.gradle.language.nativeplatform

    • -0
    • +442
    ./RegexBackedCSourceParserTest.groovy
  1. … 90 more files in changeset.