Skip to content

Compile_commands: add "output" keyword when needed #176

Description

@andreeis

Add the "output" keyword into the compile_commands.json generated by the extension to make sure that the scenario of compiling the same source into multiple outputs is correctly represented.

Note for implementation: use explicit output switches (-o, -out, -Fe, -Fo, etc...), if none present use "Must remake target Target Name" message from dryrun or build log (generated with --debug switch for make). If no such text identified then don't generate "output" keyword at all (it is optional anyway) because there is no information to help me differentiate from the current compilation of the given source file and any other different compilation of that same source file (for example, we don't track yet copy/rename/move operations of the output result).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature: accuracyAble to parse and understand more scenariosenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions