summaryrefslogtreecommitdiff
path: root/compiler/cpp
Commit message (Collapse)AuthorAgeFilesLines
* fix some license headersRoger Meier2014-11-023-4/+23
|
* THRIFT-2793 Go compiler produces uncompilable codeJens Geyer2014-11-011-5/+5
| | | | | Client: Go Pacth: Frank Schroeder
* THRIFT-2784 Eliminate compiler warnings in generated C++ codeRoger Meier2014-10-2111-24/+60
| | | | Patch: Roger Meier
* format: spaces instead of tabsRoger Meier2014-10-211-348/+348
|
* THRIFT-2784 Eliminate compiler warnings in generated C++ codeRoger Meier2014-10-131-12/+33
| | | | Patch: John Campbell
* THRIFT-1462 add more strict compiler flagsRoger Meier2014-10-134-6/+11
| | | | Patch: Roger Meier
* THRIFT-2360 Json GeneratorRoger Meier2014-10-131-4/+4
| | | | remove C++11 dependency
* THRIFT-2360 Json GeneratorRoger Meier2014-10-123-0/+475
| | | | | | Patch: Craig Peterson, Peter Neumark & Roger Meier Github Pull Request: This closes #247
* THRIFT-2720 nodejs - Error with enum generationRoger Meier2014-10-091-1/+4
|
* THRIFT-809 Javascript client: Please make required fields actually required.Roger Meier2014-10-091-2/+6
| | | | | | Patch: noazark Github Pull Request: This closes #232
* Revert "Revert "THRIFT-2722: js: Fix javascript service inheritance ↵Roger Meier2014-10-091-0/+1
| | | | | | namespacing"" This reverts commit 371358ce4e58ed45e86c87cc79d3b67ac95cfc98.
* Revert "THRIFT-2722: js: Fix javascript service inheritance namespacing"Roger Meier2014-10-091-1/+0
| | | | This reverts commit 9a7cb9f6c8e6cab5970075e2faf40944ce331ad2.
* THRIFT-2712 PHP: add "json" option to create JsonSerializable codeRoger Meier2014-10-081-10/+74
| | | | | | | | | | | | | | This patch adds a "json" option to PHP code generation that will make generated classes implement JsonSerializable, so thrift objects may be converted to json using json_encode() easily. If the "validate" option is enabled, the object's write validator will be called, beyond that the jsonSerialize() method only outputs non-null fields in the JSON object (JSON parsers get grumpy if you send them null where they expect to see a number). Patch: Stig Bakken Github Pull Request: This closes #219
* THRIFT-2722: js: Fix javascript service inheritance namespacingRoger Meier2014-10-081-0/+1
| | | | | | Patch: Stig Bakken This closes: #227
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-1/+1
| | | | | | | Client: General (Makefile.am) Patch: Jens Geyer Reverted makefile.am - tabs are not optional there
* THRIFT-2768: Whitespace FixupJens Geyer2014-10-031-1/+1
| | | | | | | Client: General (Makefile.am, *.thrift) Patch: Jens Geyer DocTest.thrift has NOT been changed, the trailing whitespaces are part of the test case.
* THRIFT-2628 struct member name conflicts due to lowercased namesJens Geyer2014-10-022-41/+76
| | | | | | | Client: Erlang Patch: Alisdair Sullivan This closes #228
* THRIFT-2689 struct names that differ only in capitalization of first ↵Jens Geyer2014-10-011-10/+10
| | | | | | | | | character generate broken erlang code Client: Erlang Patch: Alisdair Sullivan This closes #204
* THRIFT-2746: compiler/cpp/README.md updatedKonrad Grochowski2014-10-011-3/+1
| | | | | | | Client: Build Patch: Konrad Grochowski Haskell compiler no longer need to be disabled when building with mingw
* THRIFT-2746: Replace C++11 code in IDL compilerRandy Abernethy2014-09-302-102/+124
| | | | | | | | | Client: compiler (haskell and cpp generators) Patch: Randy Abernethy This patch replaces various bits of C++11 code in the Apache Thrift compiler which fail to compile on older versions of gcc (such as 4.4.7)
* THRIFT-2664: py - fixed errors on calling oneway functionsKonrad Grochowski2014-09-291-1/+1
| | | | | | | | | | Client: Python-Compiler Patch: Dustin Spicuzza 'recv_' method is resolved later, thus disregarding exceptions send from oneway methods calls This closes #188
* THRIFT-2662: py - Fix incorrect indentation when oneway function is usedKonrad Grochowski2014-09-291-9/+6
| | | | | | | | | Client: Python-Compiler Patch: Dustin Spicuzza fixes python generator when py:tornado option is enabled This closes #186
* THRIFT-2707: rb - support for oneway messages fixedKonrad Grochowski2014-09-291-1/+2
| | | | | | | | | Client: Ruby Library, Ruby Compiler Patch: Konrad Grochowski now oneway method calls will use proper message type This closes #217
* THRIFT-2709 c_glib: Support server implementationRoger Meier2014-09-291-8/+1259
| | | | Patch: Simon South
* py.twisted: Avoid synchronous exceptionsJames Broadhead2014-09-281-29/+74
| | | | | | | | | | This is an update of the patch posted to: https://issues.apache.org/jira/browse/THRIFT-585 and a re-write of 8345772 Patch: Mattias de Zalenski, James Broadhead Jira: THRIFT-585
* THRIFT-2714 Graphviz generator is missing from MSVC++ project filesJens Geyer2014-09-172-0/+4
| | | | | Client: Graphviz Patch: Jens Geyer
* THRIFT-2704 - compiler: T_ONEWAY type used for oneway methods instead of T_CALLJens Geyer2014-09-1716-24/+63
| | | | | | Patch: Konrad Grochowski This closes #216
* THRIFT-2702 empty enums lead to invalid codeJens Geyer2014-09-121-9/+13
| | | | | Client: Delphi Patch: Jens Geyer
* THRIFT-2513 clean up enum value assignmentJens Geyer2014-09-121-13/+1
| | | | | Client: Compiler (General) Patch: Jens Geyer
* THRIFT-1040 Can't end typedef lines with a semicolonJens Geyer2014-09-111-9/+9
| | | | | Client: Compiler (General) Patch: Konrad Grochowski
* THRIFT-2513 clean up enum value assignmentJens Geyer2014-09-047-74/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch: Dave Watson This closes #88 Summary: Clean up how enum values are handled if an integer value is not explicitly specified in the thrift file. For example, the following used to be a compile error, but works now: enum MyEnum { SOMEVALUE } struct MyStruct { 1: MyEnum e = SOMEVALUE } This change also cleans up some of the error handling with out-of-range values. Previously thrift simply issued a warning for enum values that didn't fit in an i32, but serialized them as i32 anyway. Now out-of-range enum values result in a compile failure. Test Plan: Included a new unit test to verify the assignment of enum values. I also verified that g++ makes the same enum value assignments when compiling these enums as C++ code.
* THRIFT-2679 golang generation fails for service names less than 5 charactersJens Geyer2014-09-041-2/+5
| | | | | Client: Go Patch: Dustin Spicuzza & Jens Geyer
* THRIFT-2690Roger Meier2014-09-041-2/+11
| | | | | | c_glib: Incorrect behaviour when serializing a map with typedef'd keys Patch: Simon South
* THRIFT-1266 generated C code for iterating over nested maps is wrongRoger Meier2014-09-041-8/+14
| | | | Patch: Simon South
* THRIFT-2067 C++: all generated objects provide ostream operator<<Konrad Grochowski2014-09-031-1/+103
|
* THRIFT-2666 Usage of PYTHONHASHSEED breaks older Python codeJens Geyer2014-09-011-1/+1
| | | | | Client: Python Patch: Jens Geyer
* THRIFT-2676 Avoid 'i386' name collision in generated Cocoa/objc codeKeith Lazuka2014-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a bug in the cocoa code generator where the variable used by a for-loop can conflict with a built-in symbol when the temporary variable counter is equal to 386. The generated variable name, 'i386', conflicts with a macro built-in to the compiler. I can reproduce this bug on Xcode 5 as well as Xcode 6. It appears to only affect iOS projects, not OS X projects. My fix simply prefixes the generated variable with 'idx' instead of 'i'. This test code demonstrates the problem, regardless of Thrift codegen. int i386 = 42; printf("foobar %d\n", i386); Which results in the following compiler error: /Users/keith/Desktop/ReservedSymbolTest/ReservedSymbolTest/ViewController.m:22:7: error: expected identifier or '(' int i386 = 99; ^ <built-in>:143:14: note: expanded from here ^ 1 error generated.
* THRIFT-2673 PHP: generated Service_method_result code should not have validatorsRoger Meier2014-09-011-19/+24
| | | | Patch: Stig Bakken
* THRIFT-2684 c_glib: Improvements to map deserialization in generated codeRoger Meier2014-09-011-3/+6
| | | | Patch: Simon South
* THRIFT-2683 c_glib: Seg fault when deserializing a map with typedef'd keysRoger Meier2014-09-011-2/+14
| | | | Patch: Simon South
* THRIFT-2670 Android parcelable generatorkedzie2014-08-231-0/+228
| | | | | -add 'android' option to java compiler which will generate Parcelable structures for Android -cleaned up warnings
* THRIFT-2571 Simplify cross compilation using CMakeRoger Meier2014-08-173-10/+6
| | | | fix CMake build and update README.md
* THRIFT-2667 create Windows Installer via CPackRoger Meier2014-08-152-2/+31
| | | | Signed-off-by: Roger Meier <roger@apache.org>
* THRIFT-2641 Improvements to Haskell Compiler/LibrariesNoam Zilberstein2014-08-101-391/+624
| | | | | | | | | - test/test.sh integration - add json and compact protocol This closes #175 Signed-off-by: Roger Meier <roger@apache.org>
* THRIFT-2653 improved Delphi const generationJens Geyer2014-08-071-12/+36
| | | | | Client: Delphi Patch: Jens Geyer
* THRIFT-2589 const of BaseType in IDL generates static instead of const ↵Jens Geyer2014-08-071-1/+1
| | | | | | | properties Client: C# Patch: Thomas Lazar
* THRIFT-2651: struct names that are restricted erlang terms generate invalid ↵alisdair sullivan2014-08-071-7/+7
| | | | | | | | | type signatures patch: alisdairsullivan@yahoo.ca client: erlang fixes error exposed in THRIFT-2647 by avoiding using restricted identifiers in erlang type signatures generated by the compiler
* THRIFT-2231 Support tornado-4.x (Python)Roger Meier2014-08-071-141/+68
| | | | | | Client: Python Patch: Roey Berman Signed-off-by: Roger Meier <roger@apache.org>
* THRIFT-2647 compiler-hs: don't decapitalize field names, do decapitalize ↵Roger Meier2014-08-071-3/+3
| | | | | | | argument bindings Client: Haskell Patch: John Chee
* THRIFT-2639 c_glib: Expose as properties members of generated structsJens Geyer2014-08-031-8/+11
| | | | | | | Client: C-glib Patch: Simon South Fixes error: 'to_string' is not a member of 'std' for non-C++11 conformant compilers