Skip to content

Create ci_compile.cpp - #6

Open
AlexGoodmen wants to merge 2 commits into
mainfrom
AlexGoodmen-patch-8
Open

Create ci_compile.cpp#6
AlexGoodmen wants to merge 2 commits into
mainfrom
AlexGoodmen-patch-8

Conversation

@AlexGoodmen

Copy link
Copy Markdown
Owner

This C++ utility program selects a compiler, runs a strict compile on DebugDisplay.cpp, and then invokes clang-tidy with the specified checks. This program assumes a Linux-like environment with g++, clang++, and clang-tidy installed.

How it works

Detects whether clang++ is present, else defaults to g++.

Compiles DebugDisplay.cpp with strict warnings-as-errors using -Wall -Wextra -Werror ....

Runs clang-tidy with the checks and header filter you listed.

Returns non-zero if compilation fails.

This C++ utility program selects a compiler, runs a strict compile on DebugDisplay.cpp, and then invokes clang-tidy with the specified checks. This program assumes a Linux-like environment with g++, clang++, and clang-tidy installed.

How it works 

Detects whether clang++ is present, else defaults to g++.

Compiles DebugDisplay.cpp with strict warnings-as-errors using -Wall -Wextra -Werror ....

Runs clang-tidy with the checks and header filter you listed.

Returns non-zero if compilation fails.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant