Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
70f81961
Commit
70f81961
authored
Apr 23, 2018
by
Paul
Browse files
Fix macro names
parent
83aa9ac3
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
13 deletions
+18
-13
.clang-tidy
.clang-tidy
+4
-4
include/rtg/argument.hpp
include/rtg/argument.hpp
+1
-1
include/rtg/float_equal.hpp
include/rtg/float_equal.hpp
+1
-1
include/rtg/instruction.hpp
include/rtg/instruction.hpp
+1
-1
include/rtg/literal.hpp
include/rtg/literal.hpp
+1
-1
include/rtg/operand.hpp
include/rtg/operand.hpp
+1
-1
include/rtg/program.hpp
include/rtg/program.hpp
+1
-1
include/rtg/shape.hpp
include/rtg/shape.hpp
+1
-1
include/rtg/stringutils.hpp
include/rtg/stringutils.hpp
+1
-1
test/test.hpp
test/test.hpp
+6
-1
No files found.
.clang-tidy
View file @
70f81961
...
@@ -97,7 +97,7 @@ CheckOptions:
...
@@ -97,7 +97,7 @@ CheckOptions:
value: CamelCase
value: CamelCase
- key: readability-identifier-naming.TypeAliasCase
- key: readability-identifier-naming.TypeAliasCase
value: lower_case
value: lower_case
#
- key: readability-identifier-naming.MacroDefinitionCase
- key: readability-identifier-naming.MacroDefinitionCase
#
value: UPPER_CASE
value: UPPER_CASE
#
- key: readability-identifier-naming.MacroDefinitionPrefix
- key: readability-identifier-naming.MacroDefinitionPrefix
#
value: RTG_
value: RTG_
include/rtg/argument.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_ARGUMENT_HPP
#ifndef GUARD_RTGLIB_ARGUMENT_HPP
#define GUARD_RTGLIB_ARGUMENT_HPP
#define
RTG_
GUARD_RTGLIB_ARGUMENT_HPP
#include <rtg/shape.hpp>
#include <rtg/shape.hpp>
#include <rtg/raw_data.hpp>
#include <rtg/raw_data.hpp>
...
...
include/rtg/float_equal.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_FLOAT_EQUAL_HPP
#ifndef GUARD_RTGLIB_FLOAT_EQUAL_HPP
#define GUARD_RTGLIB_FLOAT_EQUAL_HPP
#define
RTG_
GUARD_RTGLIB_FLOAT_EQUAL_HPP
#include <algorithm>
#include <algorithm>
#include <cmath>
#include <cmath>
...
...
include/rtg/instruction.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_INSTRUCTION_HPP
#ifndef GUARD_RTGLIB_INSTRUCTION_HPP
#define GUARD_RTGLIB_INSTRUCTION_HPP
#define
RTG_
GUARD_RTGLIB_INSTRUCTION_HPP
#include <rtg/literal.hpp>
#include <rtg/literal.hpp>
#include <rtg/shape.hpp>
#include <rtg/shape.hpp>
...
...
include/rtg/literal.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_LITERAL_HPP
#ifndef GUARD_RTGLIB_LITERAL_HPP
#define GUARD_RTGLIB_LITERAL_HPP
#define
RTG_
GUARD_RTGLIB_LITERAL_HPP
#include <rtg/shape.hpp>
#include <rtg/shape.hpp>
#include <rtg/argument.hpp>
#include <rtg/argument.hpp>
...
...
include/rtg/operand.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_OPERAND_HPP
#ifndef GUARD_RTGLIB_OPERAND_HPP
#define GUARD_RTGLIB_OPERAND_HPP
#define
RTG_
GUARD_RTGLIB_OPERAND_HPP
#include <string>
#include <string>
#include <functional>
#include <functional>
...
...
include/rtg/program.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_PROGRAM_HPP
#ifndef GUARD_RTGLIB_PROGRAM_HPP
#define GUARD_RTGLIB_PROGRAM_HPP
#define
RTG_
GUARD_RTGLIB_PROGRAM_HPP
#include <list>
#include <list>
#include <unordered_map>
#include <unordered_map>
...
...
include/rtg/shape.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_SHAPE_HPP
#ifndef GUARD_RTGLIB_SHAPE_HPP
#define GUARD_RTGLIB_SHAPE_HPP
#define
RTG_
GUARD_RTGLIB_SHAPE_HPP
#include <vector>
#include <vector>
#include <cassert>
#include <cassert>
...
...
include/rtg/stringutils.hpp
View file @
70f81961
#ifndef GUARD_RTGLIB_STRINGUTILS_HPP
#ifndef GUARD_RTGLIB_STRINGUTILS_HPP
#define GUARD_RTGLIB_STRINGUTILS_HPP
#define
RTG_
GUARD_RTGLIB_STRINGUTILS_HPP
#include <algorithm>
#include <algorithm>
#include <numeric>
#include <numeric>
...
...
test/test.hpp
View file @
70f81961
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
#include <iostream>
#include <iostream>
#ifndef GUARD_TEST_TEST_HPP
#ifndef GUARD_TEST_TEST_HPP
#define GUARD_TEST_TEST_HPP
#define
RTG_
GUARD_TEST_TEST_HPP
inline
void
failed
(
const
char
*
msg
,
const
char
*
file
,
int
line
)
inline
void
failed
(
const
char
*
msg
,
const
char
*
file
,
int
line
)
{
{
...
@@ -34,15 +34,20 @@ inline void expect_equality(const TLeft& left,
...
@@ -34,15 +34,20 @@ inline void expect_equality(const TLeft& left,
std
::
abort
();
std
::
abort
();
}
}
// NOLINTNEXTLINE
#define CHECK(...) \
#define CHECK(...) \
if(!(__VA_ARGS__)) \
if(!(__VA_ARGS__)) \
failed(#__VA_ARGS__, __FILE__, __LINE__)
failed(#__VA_ARGS__, __FILE__, __LINE__)
// NOLINTNEXTLINE
#define EXPECT(...) \
#define EXPECT(...) \
if(!(__VA_ARGS__)) \
if(!(__VA_ARGS__)) \
failed_abort(#__VA_ARGS__, __FILE__, __LINE__)
failed_abort(#__VA_ARGS__, __FILE__, __LINE__)
// NOLINTNEXTLINE
#define EXPECT_EQUAL(LEFT, RIGHT) expect_equality(LEFT, RIGHT, #LEFT, #RIGHT, __FILE__, __LINE__)
#define EXPECT_EQUAL(LEFT, RIGHT) expect_equality(LEFT, RIGHT, #LEFT, #RIGHT, __FILE__, __LINE__)
// NOLINTNEXTLINE
#define STATUS(...) EXPECT((__VA_ARGS__) == 0)
#define STATUS(...) EXPECT((__VA_ARGS__) == 0)
// NOLINTNEXTLINE
#define FAIL(...) failed(__VA_ARGS__, __FILE__, __LINE__)
#define FAIL(...) failed(__VA_ARGS__, __FILE__, __LINE__)
template
<
class
F
>
template
<
class
F
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment