Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
36 lines
294 B
C++
36 lines
294 B
C++
|
|
template <typename T>
|
|
class X
|
|
{
|
|
};
|
|
template <typename T>
|
|
void f(T t)
|
|
{
|
|
}
|
|
struct
|
|
{
|
|
} unnamed_obj;
|
|
void f()
|
|
{
|
|
struct A
|
|
{
|
|
};
|
|
enum
|
|
{
|
|
e1
|
|
};
|
|
typedef struct
|
|
{
|
|
} B;
|
|
B b;
|
|
X<A> x1;
|
|
X<A*> x2;
|
|
X<B> x3;
|
|
f(e1);
|
|
f(unnamed_obj);
|
|
f(b);
|
|
(void)x1;
|
|
(void)x2;
|
|
(void)x3;
|
|
}
|