-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request LLNL#290 from LLNL/feature/weiss27/format-tests
Formats blt's internal and smoke tests with astyle
- Loading branch information
Showing
51 changed files
with
973 additions
and
836 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--style=allman | ||
--indent=spaces=2 | ||
--max-code-length=80 | ||
--keep-one-line-statements | ||
--keep-one-line-blocks | ||
--indent-preproc-block | ||
--indent-preproc-cond | ||
--indent-preproc-define | ||
--indent-col1-comments | ||
--indent-labels | ||
--add-brackets | ||
--convert-tabs | ||
--preserve-date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,25 @@ | ||
// Copyright (c) 2017-2019, Lawrence Livermore National Security, LLC and | ||
// other BLT Project Developers. See the top-level COPYRIGHT file for details | ||
// | ||
// | ||
// SPDX-License-Identifier: (BSD-3-Clause) | ||
|
||
#include "Example.hpp" | ||
|
||
//------------------------------------------------------------------------------ | ||
Example::Example() | ||
{ | ||
// empty | ||
// empty | ||
} | ||
|
||
//------------------------------------------------------------------------------ | ||
Example::~Example() | ||
{ | ||
// empty | ||
// empty | ||
} | ||
|
||
//------------------------------------------------------------------------------ | ||
bool | ||
Example::ReturnTrue() | ||
bool Example::ReturnTrue() | ||
{ | ||
return true; | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
// Copyright (c) 2017-2019, Lawrence Livermore National Security, LLC and | ||
// other BLT Project Developers. See the top-level COPYRIGHT file for details | ||
// | ||
// | ||
// SPDX-License-Identifier: (BSD-3-Clause) | ||
|
||
#ifndef _EXAMPLE_EXPORTS_H_ | ||
#define _EXAMPLE_EXPORTS_H_ | ||
|
||
//----------------------------------------------------------------------------- | ||
// -- define proper lib exports for various platforms -- | ||
// -- define proper lib exports for various platforms -- | ||
//----------------------------------------------------------------------------- | ||
#if defined(_WIN32) | ||
#if defined(WIN32_SHARED_LIBS) | ||
#if defined(EXAMPLE_EXPORTS) || defined(example_EXPORTS) | ||
#define EXAMPLE_API __declspec(dllexport) | ||
#else | ||
#define EXAMPLE_API __declspec(dllimport) | ||
#endif | ||
#if defined(WIN32_SHARED_LIBS) | ||
#if defined(EXAMPLE_EXPORTS) || defined(example_EXPORTS) | ||
#define EXAMPLE_API __declspec(dllexport) | ||
#else | ||
#define EXAMPLE_API /* not needed for static on windows */ | ||
#endif | ||
#if defined(_MSC_VER) | ||
/* Turn off warning about lack of DLL interface */ | ||
#pragma warning(disable:4251) | ||
/* Turn off warning non-dll class is base for dll-interface class. */ | ||
#pragma warning(disable:4275) | ||
/* Turn off warning about identifier truncation */ | ||
#pragma warning(disable:4786) | ||
#define EXAMPLE_API __declspec(dllimport) | ||
#endif | ||
#else | ||
#define EXAMPLE_API /* not needed for static on windows */ | ||
#endif | ||
#if defined(_MSC_VER) | ||
/* Turn off warning about lack of DLL interface */ | ||
#pragma warning(disable:4251) | ||
/* Turn off warning non-dll class is base for dll-interface class. */ | ||
#pragma warning(disable:4275) | ||
/* Turn off warning about identifier truncation */ | ||
#pragma warning(disable:4786) | ||
#endif | ||
#else | ||
# if __GNUC__ >= 4 && (defined(EXAMPLE_EXPORTS) || defined(example_EXPORTS)) | ||
# define EXAMPLE_API __attribute__ ((visibility("default"))) | ||
# else | ||
# define EXAMPLE_API /* hidden by default */ | ||
# endif | ||
#if __GNUC__ >= 4 && (defined(EXAMPLE_EXPORTS) || defined(example_EXPORTS)) | ||
#define EXAMPLE_API __attribute__ ((visibility("default"))) | ||
#else | ||
#define EXAMPLE_API /* hidden by default */ | ||
#endif | ||
#endif | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.