SHARE
TWEET

Clang Tool Sample Input

jarruda May 12th, 2013 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include <new>
  3.  
  4. class SomeForwardDecl;
  5.  
  6. struct AStruct
  7. {
  8.   int data;
  9. };
  10.  
  11. namespace Colossus
  12. {
  13.   class MyBase
  14.   {
  15.   public:
  16.     class SomeInternalClass
  17.     {
  18.  
  19.     };
  20.  
  21.     int           BaseMethod(const char* argument);
  22.     virtual void  VirtualBaseMethod(MyBase* base);
  23.  
  24.   private:
  25.     int           BasePrivateMethod();
  26.   };
  27. }
  28.  
  29. namespace TestCompany {
  30. namespace TestApp {
  31.  
  32.   class MyDerived : public Colossus::MyBase
  33.   {
  34.   public:
  35.     /// A factory method to instantiate MyDerived objects.
  36.     /// @export
  37.     static MyBase*  SomeFactoryMethod(const char*, MyBase* copy = NULL);
  38.  
  39.     /** A derived method in a first-descendent of MyBase. */
  40.     MyBase*         SomeDerivedMethod() const;
  41.  
  42.     void            IntDefaultArg(SomeForwardDecl myForward, int number = 122);
  43.   };
  44.  
  45.   class MyBaz : public MyDerived
  46.   {
  47.   public:
  48.     MyBaz();
  49.     ~MyBaz();
  50.  
  51.     /// With a comment string!
  52.     void          ASecondDerivation(MyDerived aDerived, const MyDerived& anDerived);
  53.  
  54.     virtual void  VirtualBaseMethod(MyBase* base);
  55.     int           ITakeAStruct(AStruct st, AStruct* pst);
  56.     void          ITakeBuiltins(unsigned a, unsigned char b, long c);
  57.  
  58.   private:
  59.     const MyBaz&  operator=(const MyBaz& rhs);
  60.     void          ThisMethodPrivate();
  61.   };
  62.  
  63. }
  64. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top