Passed: , Failed:
#define foo
#ifndef foo
class foo;
class foo {
struct bar{
template <>
template < >
template < template <
template <int RTYPE,
template <int RTYPE, template <class> class StoragePolicy>
template <int RTYPE, template <class> class StoragePolicy = PreserveStorage > class Vector :
/* */ struct some_tag_struct_with_block_comment_above{} ;
template < int RTYPE > class foo;
template < int RTYPE,
inline void foo() { return foo_; }
void SomeFunction(
return List::create( _["x"] = 1,
a + b;
int foo = bar,
int foo = bar();
foo::bar // some weird comment (arguments on own line)
class Foo{}; class Foo{};
foo () : a_(a)
foo () : a_(a) {
foo () : a_(a) {
foo () : a_(a)
int foo (int a) {
{
{ bar;
struct bar{};
class foo : A,
class foo : A,
class foo : bar<T> {
template <typename T>
class foo : public bar::baz{
class foo : public ::bar::baz, public ::bat::man {
class foo: public A {
if (1 == 2) {
if (1 > 2)
if (1 > 2) return true;
if (() a())
if (1 == 2) { return 1 }
if (1 == 2)
if (a) if (b)
else if (bar)
while (a) while (b) c++;
for(a; b; c) ;
#include <foo>
for ( something that could kindly be vertically aligned;
for ( tricky to vertically align;
for () { foo;
else
for () while ()
for () while () ;
for () { x > 0;
else
public: int x;
public:
private:
protected:
case:
namespace r {
namespace r {
namespace { class Foo:
int z = 4; int x = 1 +
int q = 4;
void myFunction() {
void myFunction() { // This function will be amazing
int foo(
switch (x) {
case foo:
case foo: bar;
case foo: bar;
std::find_if(x.begin(), x.end(), [](int x) {
/*** * */
/*** * */
std::string msg = "A multi-line message"
static void namespace_reader() {
class Foo
class Foo { public: struct Entry { std::string file;
Foo(const int a, const int b) : a_(a), b_(b), c_(c) {
class Foo : public A,
class Foo:
class Foo : public A, public B, public C {
class Foo : public TemplateClass<Params>
class Foo : public TemplateClass<Many, Template, Parameters>
class Foo : public A,
class Foo : public A, public B {
class Foo : public A, public B,
class Foo : public A, public B { };
Foo(int a, int b): a_(a),
Foo(const int a, int b, int c, const int d, int e, int f) : a_(a), b_(b), c_(c), d_(d), e_(e), f_(f) {
std::find_if(x.begin(),
std::find_if(x.begin(), x.end(), [](x) {
foo( int a,
class Foo : public A
[1, 2, 3,
[[[1, 2, 3,
[[[1, 2, 3, 4, 5, 6, 7, 8, 9],
[]() noexcept {
SomeBigFunction( a );
int foo(const int a, const int b, const unsigned int c) const {
int foo(const unsigned int a, const unsigned int b, const unsigned int c) const noexcept : a_(a), b_(b), c_(c)
int foo(const unsigned int a, const unsigned int b, const unsigned int c) const noexcept {
int foo(const unsigned int a, const unsigned int b, const unsigned int c) const noexcept
int foo(const unsigned int a, const unsigned int b, const unsigned int c) noexcept :
void doSomething( ) = 0;
try {
try
try { try {
try { } catch(Exception& e) {
try { } catch(Exception& e)
std::string msg = "This is a" "long message";
return someStatementReturningTrue() ? truthyValue() : falsyValue();
x = 1 + 2;
foo(bar, "// annoying comment with \"in-line quotes\"", "with // another string", baz);
else if (bar) baz;
if () { ; } else {
Param::Param(const std::string& paramText)
class Foo { public: int foo(int a, int b)
while (foo ||
enum Foo { VALUE_1 = 1,