Sam Edwards
62f7aabe91
Merge branch 'master' into cmake
2018-11-01 22:33:04 -06:00
rdb
2ed4cd7ce6
cppparser: fix CPPStructType::is_trivial() for eg. ButtonHandle
2018-10-29 16:08:29 -06:00
Sam Edwards
208ecd6708
Merge branch 'master' into cmake
2018-09-02 16:06:41 -06:00
rdb
5da8b63a66
cppparser: fix formatting of typecast operator
2018-08-19 16:04:56 +02:00
Sam Edwards
2ab77d9a27
Merge branch 'master' into cmake
2018-08-14 21:59:45 -06:00
rdb
30721ba33b
cppparser: fix issues when parsing templated constructor definition
2018-07-31 14:05:08 +02:00
rdb
e191ee84f4
cppparser: class is not implicitly copyable if it has a move ctor
2018-06-30 21:38:45 +02:00
Sam Edwards
b2bfb31114
general: Remove `using std::*` from headers
...
Also remove most `using namespace std;` statements. The only one that remains is in py_panda.h.
Closes #350
Closes #335
2018-06-14 16:04:49 +02:00
Sam Edwards
c4126942f6
Merge branch 'master' into cmake
2018-06-10 02:29:21 -06:00
rdb
fa6d8b4b39
cppparser: fix class with array member not seen as copy-constructible
2018-06-09 10:29:34 +02:00
Sam Edwards
7790f8429d
general: Fully qualify header references into the std namespace
...
Closes #341
2018-06-07 10:35:12 +02:00
Sam Edwards
592a2e2d68
Merge branch 'master' into cmake
2018-06-06 13:18:12 -06:00
rdb
5582e174b6
cppparser: fix issue with typedefs to forward declared templates
...
I don't know if this is the right solution, but it does fix an issue accessing std::ios::openmode caused by the ios typedef being defined before ios_base is fully specified.
2018-06-04 17:30:02 +02:00
Sam Edwards
e2b4353800
general: Replace NULL (and 0 as pointer) with C++11 nullptr
...
Exceptions to this replacement are:
- .c files
- Headers included by a .c file
- stb_image.h
- dr_flac.h
- Strings
- Comments
2018-06-03 16:35:13 -06:00
rdb
e0245d2777
First step towards eliminating `using namespace std;` ( #335 )
2018-06-03 20:32:23 +02:00
rdb
db5dd98d33
general: further warning fixes, use -Wno-unused-variable if NDEBUG
...
Disabling unused variable checking is needed in NDEBUG builds because of the heavy use of temporary variables in asserts.
2018-05-30 22:51:04 +02:00
rdb
6b726fa697
general: fix various compiler warnings and issues exposed thereby
2018-05-30 11:09:35 +02:00
Sam Edwards
6efb07de93
Merge branch 'master' into cmake
2018-05-14 19:09:14 -06:00
rdb
6175e79c57
cppparser: fix infinite recursion stack overflow with enum classes
2018-05-06 22:21:24 +02:00
rdb
666591ff48
cppparser: fix compile warnings on MSVC
2018-05-06 22:19:33 +02:00
Sam Edwards
95785407a3
CMake: General whitespace fixes
...
- Remove trailing whitespace from ends of lines
- Convert tabs to (two) spaces
2018-04-20 02:30:04 -06:00
Sam Edwards
218d0e8ade
CMake: Build dtool metalibs as metalibs
2018-04-19 00:07:08 -06:00
Sam Edwards
eda119dac4
Merge branch 'master' into cmake
...
# Conflicts:
# .travis.yml
2018-02-04 17:12:51 -07:00
Sam Edwards
0d079e2b80
general: Remove execute modes from ordinary text files
2018-02-04 17:11:43 -07:00
rdb
69b3468b2c
interrogate: more improvements to seq/map wrappers
...
Gets rid of properties defined as both MAKE_SEQ_PROPERTY/MAKE_MAP_PROPERTY, which are just a bad idea. Instead, adds a way for map properties to define a separate "keys" interface.
Fixes : #203
2017-11-27 17:29:50 +01:00
rdb
483a491ed7
interrogate: simplify coercion code
...
This remove support for coercing non-ReferenceCounted types that are neither default-constructible nor move-assignable, but it turns out none of the classes we really need it for matches that.
It further cuts down on the amount of code that is being generated to support coercion in cases where it makes absolutely no sense.
2017-11-06 19:53:38 +01:00
rdb
dee8d83998
interrogate: fix regression with setter of MAKE_PROPERTY2
...
See also tobspr/RenderPipeline#86
2017-10-17 21:18:51 +02:00
rdb
bf190f7306
interrogate: support MAKE_MAP_PROPERTY
2017-10-09 00:02:46 +02:00
rdb
d1c34c3360
interrogate: support static properties
2017-08-07 22:04:56 +02:00
rdb
d6657baf29
cppparser: fix scope bug in constructor inits
...
This also fixes the Android build.
2017-05-25 13:20:11 +02:00
rdb
a175ad6a82
interrogate: fix compile error with default values that call scoped functions
2017-04-07 13:56:47 +02:00
Sam Edwards
dd490656a0
CMake: Update for upstream changes
2017-02-15 03:46:14 -07:00
Sam Edwards
ed4725afa2
Merge branch 'master' into cmake
2017-02-15 03:46:00 -07:00
Sam Edwards
ec3c2c5681
general: Fix missing include
2017-02-15 03:44:48 -07:00
rdb
18f09c48dd
cppparser: parse template friend declaration
2017-02-09 23:52:38 +01:00
rdb
c0191a3126
cppparser: update cppBison prebuilt files
2017-01-17 22:51:04 +01:00
rdb
e2771d39a9
cppparser: support for various C++11/C++14/C++17 features:
...
- decltype(auto)
- attributes (ie. [[deprecated]]), incl. with C++17 "using"
- extern template class (parses)
- sizeof struct members
- aggregate initialization
- initializers in capture lists
- alignas (parses)
2017-01-15 15:39:34 +01:00
rdb
e12420571b
cppparser: support C++11 lambda expressions
2017-01-14 22:37:33 +01:00
rdb
5aabd56697
cppparser: support C++11 raw string literals
2017-01-14 22:35:38 +01:00
Sam Edwards
f1da5ce92f
Merge branch 'master' into cmake
2017-01-09 17:59:22 -07:00
rdb
40ea0ab786
cppparser: support directives __LINE__, __FILE__, __has_include
2017-01-04 22:46:57 +01:00
rdb
8d305273dd
Merge remote-tracking branch 'origin/master' into cmake
2016-12-07 23:05:40 +01:00
rdb
b182224463
interrogate: fix issues with abstract classes and covariance (fixes EggPolygon constructor)
2016-12-05 17:22:24 -05:00
rdb
a056543d5a
Support push_macro and pop_macro in cppparser
2016-12-05 02:02:25 +01:00
Sam Edwards
e3fcacb1f7
Merge branch 'master' into cmake
2016-11-30 19:21:50 -08:00
Sam Edwards
573dad8dde
general: Fix missing includes.
2016-11-30 19:21:34 -08:00
rdb
d54d43ac34
cppparser: fix issue with templated external method definitions
2016-11-03 18:04:14 +01:00
rdb
22f0b50851
More Interrogate C++11 support changes:
...
* Parse variadic templates
* Add (incomplete) type_traits support
* Parse anonymous class template params
* Parse volatile/lvalue/rvalue methods
* Don't generate destructor for indestructible types
* Add xmmintrin.h header
* Allow invoking extensions with references
2016-11-03 12:17:11 +01:00
rdb
1467541b8d
Interrogate issues: "fix #pragma once" for files specified on command-line, fix "unexpected $end" not having line numbers when parsing template parameter list
2016-11-01 12:19:11 +01:00
Mitchell Stokes
59b0913b0b
Cleanup .gitignore files
...
Remove all .gitignore files in subdirectories and add a few new ignores
to the top-level directory .gitignore file.
2016-10-30 20:06:12 -07:00