mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-14 15:32:24 +00:00
8ff885a3a8
Closes #17 Implements the IsGenerated helper function to filter out generated files using the rules and matchers in: - https://github.com/github/linguist/blob/master/lib/linguist/generated.rb Since the vast majority of matchers have very different logic, it cannot be autogenerated directly from linguist like other logics in enry, so it's translated by hand. There are three different types of matchers in this implementation: - By extension, which mark as generated based only in the extension. These are the fastest matchers, so they're done first. - By file name, which matches patterns against the filename. These are performed in second place. Unlike linguist, we try to use string functions instead of regexps as much as possible. - Finally, the rest of the matchers, which go into the content and try to identify if they're generated or not based on the content. Unlike linguist, we try to only read the content we need and not split it all unless it's necessary and use byte functions instead of regexps as much as possible. Signed-off-by: Miguel Molina <miguel@erizocosmi.co>
59 lines
1.5 KiB
C++
59 lines
1.5 KiB
C++
// Generated by Haxe 4.0.5
|
|
#ifndef INCLUDED_Main
|
|
#define INCLUDED_Main
|
|
|
|
#ifndef HXCPP_H
|
|
#include <hxcpp.h>
|
|
#endif
|
|
|
|
HX_DECLARE_CLASS0(Main)
|
|
|
|
|
|
|
|
class HXCPP_CLASS_ATTRIBUTES Main_obj : public hx::Object
|
|
{
|
|
public:
|
|
typedef hx::Object super;
|
|
typedef Main_obj OBJ_;
|
|
Main_obj();
|
|
|
|
public:
|
|
enum { _hx_ClassId = 0x332f6459 };
|
|
|
|
void __construct();
|
|
inline void *operator new(size_t inSize, bool inContainer=false,const char *inName="Main")
|
|
{ return hx::Object::operator new(inSize,inContainer,inName); }
|
|
inline void *operator new(size_t inSize, int extra)
|
|
{ return hx::Object::operator new(inSize+extra,false,"Main"); }
|
|
|
|
inline static hx::ObjectPtr< Main_obj > __new() {
|
|
hx::ObjectPtr< Main_obj > __this = new Main_obj();
|
|
__this->__construct();
|
|
return __this;
|
|
}
|
|
|
|
inline static hx::ObjectPtr< Main_obj > __alloc(hx::Ctx *_hx_ctx) {
|
|
Main_obj *__this = (Main_obj*)(hx::Ctx::alloc(_hx_ctx, sizeof(Main_obj), false, "Main"));
|
|
*(void **)__this = Main_obj::_hx_vtable;
|
|
return __this;
|
|
}
|
|
|
|
static void * _hx_vtable;
|
|
static Dynamic __CreateEmpty();
|
|
static Dynamic __Create(hx::DynamicArray inArgs);
|
|
//~Main_obj();
|
|
|
|
HX_DO_RTTI_ALL;
|
|
static bool __GetStatic(const ::String &inString, Dynamic &outValue, hx::PropertyAccess inCallProp);
|
|
static void __register();
|
|
bool _hx_isInstanceOf(int inClassId);
|
|
::String __ToString() const { return HX_("Main",59,64,2f,33); }
|
|
|
|
static void main();
|
|
static ::Dynamic main_dyn();
|
|
|
|
};
|
|
|
|
|
|
#endif /* INCLUDED_Main */
|