path: root/test
AgeCommit message (Collapse)AuthorFilesLines
2020-07-03Run clang-formatAlbert Astals Cid8-1415/+1263
find . \( -name "*.cpp" -or -name "*.h" -or -name "*.c" -or -name "*.cc" \) -exec clang-format -i {} \; If you reached this file doing a git blame, please see README.contributors (instructions added 2 commits in the future to this one)
2020-01-05Update (C) for previous commitsAlbert Astals Cid1-0/+1
2020-01-04Remove the error callback data pointer as none of the frontends make use of it.Adam Reichold1-2/+2
2019-12-02enable modernize-redundant-void-argAlbert Astals Cid3-13/+13
No copyright, it's a mechanical change
2019-12-02enable modernize-use-bool-literalsAlbert Astals Cid1-1/+1
No copyright, this is a mechanical change
2019-12-02Enable modernize-use-overrideAlbert Astals Cid1-1/+1
not claiming copyright for this since it's a mechanical change
2019-11-29Enable modernize-deprecated-headersAlbert Astals Cid3-10/+10
2019-11-09Make globalParams a std::unique_ptrOliver Sander4-9/+4
2019-09-29pdf-inspector: Support builddir != srcdirAlbert Astals Cid2-1/+3
2019-06-05-Wshadow renaming in perf-testAlbert Astals Cid1-3/+3 Rename variable to fix shadow warningAlbert Astals Cid1-3/+3
2019-03-29Use the existing Ref operator==Albert Astals Cid1-3/+3
2019-03-21Update (C) from last commitAlbert Astals Cid1-0/+1
2019-03-21Remove GooList completelyOliver Sander1-1/+0
2019-02-27pdf-fullrewrite: Save copy() callsAlbert Astals Cid1-6/+6
2019-02-27Make Annot::getNF and Dict::getNF return const & instead of copyAlbert Astals Cid1-4/+4
Lots of users can deal with a const & directly, so it saves us some copying. For the ones that can't move the copy to the caller side. Some of copy() on the caller side can be easily removed, that will come on next commits
2018-12-20Fix minor typosYuri Chornoivan1-4/+4
2018-12-06Replace Guchar by unsigned charOliver Sander1-1/+1
2018-11-11Rename GooString::getCString GooString::c_strOliver Sander1-1/+1
This is the name used by std::string.
2018-10-23Replace GBool, gTrue, and gFalse by bool, true, false, resp.Oliver Sander4-53/+53
These are just non-standard names for bool, true, false, respectively. Getting rid of these names saves on layer of mental redirection, and enables proper syntax highlighting in editors.
2018-10-19pdf-inspector: Link to the right librariesChristian Persch1-1/+7
pdf-inspector doesn't use libpoppler-glib, but linked to it. Changing it to link only to libpoppler revealed that it used lots of symbols from poppler-glib that poppler-glib should not export. Fix that by adding the necessary sources to the pdf-inspector sources and linking to the libraries needed by these sources (freetype, pthreads).
2018-10-10Remove usage of pragmas interface and implementationAdam Reichold2-8/+0
GCC recommends not using them for a long time and its documentation says: > These #pragmas have been superceded as of GCC 2.7.2 by COMDAT support > and the “key method” heuristic mentioned in Vague Linkage. > Using them can actually cause your program to grow due to > unnecessary out-of-line copies of inline functions. Also nobody seems to set USE_GCC_PRAGMAS and sometimes they were guarded by just __GNUC__ which upsets Clang.
2018-09-23Error: Make the msg be constAlbert Astals Cid1-1/+1
2018-09-23Don't cast nullptrAlbert Astals Cid1-1/+1
Doesn't make any sense
2018-05-06Replace GooHash by std::unordered_map in OutputDev.Adam Reichold1-12/+5
2018-04-06Make Object return const GooString pointerAlbert Astals Cid1-2/+2
This helps making sure noone is changing strings that belong to objects without us realizing. In fact noone was doing except an ifdef for windows, fixed it to not modify the dict contents anymore
2018-01-09Enable no-missing-field-initializersAlbert Astals Cid2-2/+2
2018-01-08Run clang-tidy with modernize nullptrAlbert Astals Cid5-66/+69
Also add two enum values in the qt5 frontend to representate no flags Also mark glib/gtk/cairo system includes so that gcc doesn't report the issues in those headers
2018-01-08Delete lots of copy constructors and copy assignment operatorsAlbert Astals Cid1-0/+4
Fixes rule-of-three and copyable-polymorphic warnings reported by clazy. The default copy constructor and copy assignment operator are only valid for simple classes so we delete them (i.e. make then not exist) when we have either a virtual class or a destructor, the code still compiles so this doesn't fix any bug, it is more a protection for when you think you can copy a class and don't realize the default copy constrcutor is not doing what you want and you get crashes. Hopefully this helps us in the future :)
2017-11-15Fix some mingw warningsAdrian Johnson1-12/+3
- Include poppler-config.h for mingw PRINTF_FORMAT - Only redefine strcasecmp for MSVC - Recent versions of MSVC have snprintf and vsnprintf
2017-09-21Remove the autotools based build systemAlbert Astals Cid1-67/+0
2017-09-17Fix printf-like format warningsAlbert Astals Cid1-0/+2
2017-09-17A few more static markersAlbert Astals Cid1-1/+1
2017-09-16Fix missing-declarations warningsAlbert Astals Cid2-31/+35
... and add it to default warning set
2017-09-05cmake: Fix build when using a cairo different than the system oneAlbert Astals Cid1-2/+2
2017-09-03Remove the old if/else cmake syntaxAlbert Astals Cid1-5/+5
that was weird and forced you to replicate the if clause in the else and endif
2017-05-09New Object APIAlbert Astals Cid1-15/+6
Implement the move operators and copy construtor Almost all the init() functions are gone and we just have simple constructors now Also made free() public since you're not supposed to call it anymore, unless you're being evil and malloc'ing Objects like Array/Dict/XRef This has a huge reaction chain, most importantly we don't get objects by passing a pointer Object parameter, we just get the object as a return value, which is a much clearer API - aobj->copy(&obj); + obj = aobj->copy(); before I was never sure what was being copied into what Comes with a huge diff, I probably made some mistake in the porting since there was lots of copy & paste involved
2017-03-09Add override markersAlbert Astals Cid1-3/+3
2014-12-01Run dos2unix as suggested by Volker GrabschAlbert Astals Cid2-294/+294
2014-11-30warning: "_FILE_OFFSET_BITS" redefinedRichard PALO1-1279/+1280
Bug #86870
2014-09-29Refactor Makefiles to build a noinst library for parsing argsHib Eris1-4/+4
Prevents this automake warning about possible forward-incompatibility: $ ./ ... cpp/tests/ warning: source file '$(top_srcdir)/utils/' is in a subdirectory, cpp/tests/ but option 'subdir-objects' is disabled automake: warning: possible forward-incompatibility. automake: At least a source file is in a subdirectory, but the 'subdir-objects' automake: automake option hasn't been enabled. For now, the corresponding output automake: object file(s) will be placed in the top-level directory. However, automake: this behaviour will change in future Automake versions: they will automake: unconditionally cause object files to be placed in the same subdirectory automake: of the corresponding sources. automake: You are advised to start using 'subdir-objects' option throughout your automake: project, to avoid future incompatibilities. cpp/tests/ warning: source file '$(top_srcdir)/utils/' is in a subdirectory, cpp/tests/ but option 'subdir-objects' is disabled parallel-tests: installing './test-driver' test/ warning: source file '../utils/' is in a subdirectory, test/ but option 'subdir-objects' is disabled $ automake --version automake (GNU automake) 1.14.1 ... cleanupsHib Eris1-45/+23
Bug #79411
2014-02-17Clang++ plugin that checks for usage errors in GooString::format-style callsFabio D'Urso2-0/+385
2014-01-27[qt] Improve compilation under Win 8 with Visual Studio 2012Bogdan Cristea1-1/+0
Bug #73111
2013-07-08build: Make -lpthread take preference over -pthreadCarlos Garcia Campos1-2/+4
This makes libpoppler link to pthreads and fixes runtime error due to unresolved pthread symbols when running some of the utils and tests.
2013-05-21Do not use deprecated gtk_scrolled_window_add_with_viewport()Hib Eris1-0/+4
2013-04-14Merge remote-tracking branch 'origin/poppler-0.22'Albert Astals Cid1-2/+4
2013-04-14Check for strcpy_s() and strcat_s() at configure timeHib Eris1-2/+4
It is better to test for functions than to hardcode exceptions for specific compilers. This fixes compiling poppler with the latest mingw-w64 compiler which has strcpy_s() and strcat_s() build in. Bug #63459
2013-01-25Large file supportAdrian Johnson1-3/+3
Create a Goffset type and use this type for all file offsets and file sizes. Bug 44085
2013-01-25Add Int64 object typeAdrian Johnson1-8/+1
Bug 44085