Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cmake] utilities #140

Closed
10 tasks done
Raffaello opened this issue May 20, 2020 · 5 comments
Closed
10 tasks done

[cmake] utilities #140

Raffaello opened this issue May 20, 2020 · 5 comments
Assignees
Labels
configuration cmake or project related code, configuaration
Milestone

Comments

@Raffaello
Copy link
Owner

Raffaello commented May 20, 2020

checks, linting, compiler cache....

https://cliutils.gitlab.io/modern-cmake/chapters/features/utilities.html

  • scan-build cmake
  • scan-build make (cmake build)
  • clang-tidy
  • cpplint
  • cppcheck
    - [ ] cppdepend (not free)
  • codechecker
  • clang-check
  • clang-format

  • consider to add a scan-build job in azure
  • consider to add a cpplint job in azure
@Raffaello Raffaello added the configuration cmake or project related code, configuaration label May 20, 2020
@Raffaello
Copy link
Owner Author

Raffaello commented May 21, 2020

this one seems very interesting also for the clang analysis tools aspect that still missing:

https://interrupt.memfault.com/blog/arm-cortexm-with-llvm-clang

Interrupt
An overview of how to compile an ARM Cortex-M based project with LLVM/Clang and an exploration of the neat features available in the toolchain such as static analysis to identify memory leaks and deadlocks

@Raffaello Raffaello added this to the Version 0.3.0 milestone May 21, 2020
@Raffaello Raffaello self-assigned this May 21, 2020
@Raffaello
Copy link
Owner Author

the scan-build at the moment i don't see any benefits to put it in a CI job....

@Raffaello
Copy link
Owner Author

no real use of cppcheck in ci at the moment. compiler warnings are enough.

@Raffaello
Copy link
Owner Author

Raffaello commented May 21, 2020

clang-tidy similar to comiler warnings no real use at all.

simpler cli usage with python script:
https://www.kdab.com/clang-tidy-part-1-modernize-source-code-using-c11c14/

KDAB
This blog series will introduce the clang-tidy utility from the Clang/LLVM project and show how to use it to automatically refactor C++ source code and integrate with your build system, as well as how to use the tool on other platforms than Unices. Motivation: The joy of legacy code bases C++11 added a significant amount of new C++ language features …

@Raffaello
Copy link
Owner Author

Raffaello commented May 21, 2020

cpplint could be added, if only i am able to find a way to personlize it, some linting violation i would like to be possible :godmode:


codacy is doing already some of those linting....

@Raffaello Raffaello mentioned this issue May 21, 2020
9 tasks
Raffaello added a commit that referenced this issue May 22, 2020
* preparing for v0.3.0

* rebase

* add clearLine method. fix #42

* update readme. fix #121

* for loop refactor in a C++ way

* refactor _setCharAtCursorPosition name

* refactor clearLine

* add fill method. Fix #113

* decouple VgaTerminal drawing functionality to Window. Fix #122

* cursor blinking flag. Fix #39

* cursor speed from enum class, partially fix #38

* [cmake] macro to generate example. Fix #126

* update version string to 0.3.0 fixes #129

* build switch for precise timer,fixes #131 cursor blinking test macOS

* replace -fPIC with CMAKE_POSITION_INDEPENDENT_CODE flag. fix #132

* [appveyor | macOS] disable precise timer fix #131

* [TuiTerminal] phase 1 ver 0.1-showcase and example. Fixes #133

* [cmake] using GoogleTest module and macro for test. Fixes#128

* TODOs review

* define specific runtime_error exception. Fixes # 139

* fixes #91

* [wont fix] snapshot testing on CI. Fixes #141

* publish test report and code coverage on analysis pipeline. Fixes #143

* publish test reports even if test task failed. Fixes #130

* add .gittribute

* [lint] line ending LF

* [lint] replace TABS with SPACES

* [lint] end line LF. [azure-pipelines] cpplint analisys

* [azure-pipelines] add cpplint job. Fixes #140

* compilers warning fixes #146

* Apply suggestions from code review
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration cmake or project related code, configuaration
Projects
None yet
Development

No branches or pull requests

1 participant