Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

clang-format after moving to c++ #96

Merged
merged 2 commits into from
Jun 6, 2018
Merged

clang-format after moving to c++ #96

merged 2 commits into from
Jun 6, 2018

Conversation

pramodk
Copy link
Collaborator

@pramodk pramodk commented Jun 5, 2018

  • previous PR from Jeremy didn't update source style
  • disable indentation of namespaces
  • upgrade clang-format to 5.0

 - previous PR from Jeremy didn't update source style
 - disable indentation of namespaces
@pramodk pramodk requested a review from fouriaux June 5, 2018 14:35
CMakeLists.txt Outdated
@@ -163,8 +163,8 @@ add_definitions(-DCORENEURON_BUILD)
option (ENABLE_SELECTIVE_GPU_PROFILING "Enable GPU profiling only for Solver" ON)
option (ENABLE_OPENACC "Enable use of OpenACC" OFF)

set(CLANG_FORMAT_MIN_VERSION "4.0")
set(CLANG_FORMAT_MAX_VERSION "4.9")
set(CLANG_FORMAT_MIN_VERSION "5.0")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does changing CLANG_FORMAT_MIN version is changing some formating or correcting C++ formating ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

obviously this is typo...I wanted to set min to 5.0 and max to 5.9.

Copy link
Contributor

@fouriaux fouriaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we changing clang-format minimal version ?

@pramodk
Copy link
Collaborator Author

pramodk commented Jun 5, 2018

Why are we changing clang minimal version ?

no specific reason but 4.0 is quite old now and when we install clang-format (say with brew), clang-format 5 is installed. Hence I thought we should start using latest version.

@pramodk
Copy link
Collaborator Author

pramodk commented Jun 5, 2018

p.s. note that most of changes in this PR are not specific to 5.0

Copy link
Contributor

@fouriaux fouriaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good

@pramodk pramodk merged commit b21da2f into master Jun 6, 2018
@pramodk pramodk deleted the namespace_indent branch June 6, 2018 07:50
pramodk added a commit to neuronsimulator/nrn that referenced this pull request Nov 2, 2022
- previous PR from Jeremy didn't update source style
- disable indentation of namespaces

CoreNEURON Repo SHA: BlueBrain/CoreNeuron@b21da2f
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants