Skip to content

Commit

Permalink
COMP: Fix KWStyle check errors from cxx files Modules/Core/Common/CMake
Browse files Browse the repository at this point in the history
Fixed KWStyle check "Header mismatch" errors, by adding a copyright
notice header to each cxx file in Modules/Core/Common/CMake

Fixed two more KWStyle check errors in itkCheckHasGNUAttributeAligned.cxx:
- line 17: error: namespace not defined
- line 59: error: Template definition (t) doesn't match regular expression
  • Loading branch information
N-Dekker authored and dzenanz committed Oct 11, 2021
1 parent 5ce113f commit 809f149
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasFeenableexcept.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <cfenv>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasFegetenv.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <fenv.h>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasFenvtStructMember.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <fenv.h>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasFeraiseexcept.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <fenv.h>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasFesetenv.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <fenv.h>

int
Expand Down
25 changes: 24 additions & 1 deletion Modules/Core/Common/CMake/itkCheckHasGNUAttributeAligned.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

namespace itk
{
// Opened this namespace, just to avoid KWStyle check error, "namespace not defined".
}

//
// Check if the compoler support the GNU attribute extension for
// alignment, and does not contain a bug which causes internal
Expand Down Expand Up @@ -38,7 +61,7 @@ class foo

// This structure will generate a compiler error if the template
// argument is false
template <bool t>
template <bool V>
struct OnlyTrue;
template <>
struct OnlyTrue<true>
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasMallinfo.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <malloc.h>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkCheckHasMallinfo2.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <malloc.h>

int
Expand Down
18 changes: 18 additions & 0 deletions Modules/Core/Common/CMake/itkGetCXXCompilerVersion.cxx
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/

#include <iostream>

int
Expand Down

0 comments on commit 809f149

Please sign in to comment.