summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-04-16 16:11:39 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-05-03 13:46:25 +0200
commit9a7aa3326d087c79879e435179e359dd76aa5e0a (patch)
tree444364cd0af0a8741b2ec206e29a8cb5cda1ef57 /include
parentc0038f61aff45595c962911f16dfdef93f41924e (diff)
The -fvisibility-ms-compat hack is no longer needed for UBSan on Linux...
...with latest Clang trunk towards Clang 9. All the no-longer necessary hacks are made conditional on new NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY, which is still set for UBSan builds with older Clang on Linux (but which should eventually be purged). Various classes needed additional SAL_DLLPUBLIC_RTTI annotations, as building with UBSan instrumentation can generate references to RTTI symbols from additional places like outside a dynamic library that used to hide those symbols by default (but used to not hide them for old UBSan builds thanks to the -fvisibility-ms-compat hack). The odr-violation suppressions in solenv/sanitizers/asan-suppressions (which is not referenced from anywhere in the code base, but meant to be included in an ASan/UBSan build's ASAN_OPTIONS env var) are also no longer needed when NEED_CLANG_LINUX_UBSAN_RTTI_VISIBILITY is false. Change-Id: I24ec3e388b0cbab50dbe2bf008d9569bff7bf25a Reviewed-on: https://gerrit.libreoffice.org/70829 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/oox/vml/vmlshape.hxx2
-rw-r--r--include/svx/AccessibleControlShape.hxx2
-rw-r--r--include/svx/EnhancedCustomShapeFunctionParser.hxx2
-rw-r--r--include/svx/gridctrl.hxx2
-rw-r--r--include/toolkit/awt/vclxwindows.hxx8
-rw-r--r--include/xmloff/NamedBoolPropertyHdl.hxx2
-rw-r--r--include/xmloff/controlpropertyhdl.hxx6
7 files changed, 12 insertions, 12 deletions
diff --git a/include/oox/vml/vmlshape.hxx b/include/oox/vml/vmlshape.hxx
index 2bab907e884f..cb60a13c6356 100644
--- a/include/oox/vml/vmlshape.hxx
+++ b/include/oox/vml/vmlshape.hxx
@@ -122,7 +122,7 @@ struct OOX_DLLPUBLIC ShapeTypeModel
/** A shape template contains all formatting properties of shapes and can serve
as templates for several shapes in a drawing. */
-class ShapeType
+class SAL_DLLPUBLIC_RTTI ShapeType
{
public:
explicit ShapeType( Drawing& rDrawing );
diff --git a/include/svx/AccessibleControlShape.hxx b/include/svx/AccessibleControlShape.hxx
index 5b0e49941741..8c8115d9d748 100644
--- a/include/svx/AccessibleControlShape.hxx
+++ b/include/svx/AccessibleControlShape.hxx
@@ -66,7 +66,7 @@ namespace accessibility {
> AccessibleControlShape_Base;
/** @descr
*/
-class AccessibleControlShape final
+class SAL_DLLPUBLIC_RTTI AccessibleControlShape final
:public AccessibleShape
,public AccessibleControlShape_Base
{
diff --git a/include/svx/EnhancedCustomShapeFunctionParser.hxx b/include/svx/EnhancedCustomShapeFunctionParser.hxx
index 30873c5eb644..ff53f38c6bff 100644
--- a/include/svx/EnhancedCustomShapeFunctionParser.hxx
+++ b/include/svx/EnhancedCustomShapeFunctionParser.hxx
@@ -134,7 +134,7 @@ inline std::basic_ostream<charT, traits> & operator <<(
SVX_DLLPUBLIC void FillEquationParameter( const css::drawing::EnhancedCustomShapeParameter&, const sal_Int32, EnhancedCustomShapeEquation& );
-class ExpressionNode
+class SAL_DLLPUBLIC_RTTI ExpressionNode
{
public:
virtual ~ExpressionNode();
diff --git a/include/svx/gridctrl.hxx b/include/svx/gridctrl.hxx
index fecb365b34ec..60f39a39198c 100644
--- a/include/svx/gridctrl.hxx
+++ b/include/svx/gridctrl.hxx
@@ -63,7 +63,7 @@ enum class GridRowStatus
// DbGridRow, description of rows
-class DbGridRow : public SvRefBase
+class SAL_DLLPUBLIC_RTTI DbGridRow : public SvRefBase
{
css::uno::Any m_aBookmark; // Bookmark of the row, can be set
::std::vector< std::unique_ptr<::svxform::DataColumn> >
diff --git a/include/toolkit/awt/vclxwindows.hxx b/include/toolkit/awt/vclxwindows.hxx
index 025238ecedbe..202d5974c8f9 100644
--- a/include/toolkit/awt/vclxwindows.hxx
+++ b/include/toolkit/awt/vclxwindows.hxx
@@ -175,7 +175,7 @@ protected:
// class VCLXCheckBox
-class VCLXCheckBox : public css::awt::XCheckBox,
+class SAL_DLLPUBLIC_RTTI VCLXCheckBox : public css::awt::XCheckBox,
public css::awt::XButton,
public VCLXGraphicControl
{
@@ -233,7 +233,7 @@ public:
// class VCLXRadioButton
-class VCLXRadioButton : public css::awt::XRadioButton,
+class SAL_DLLPUBLIC_RTTI VCLXRadioButton : public css::awt::XRadioButton,
public css::awt::XButton,
public VCLXGraphicControl
{
@@ -562,7 +562,7 @@ public:
// class VCLXScrollBar
-class VCLXScrollBar : public css::awt::XScrollBar,
+class SAL_DLLPUBLIC_RTTI VCLXScrollBar : public css::awt::XScrollBar,
public VCLXWindow
{
private:
@@ -874,7 +874,7 @@ public:
// class VCLXFormattedSpinField
-class VCLXFormattedSpinField : public VCLXSpinField
+class SAL_DLLPUBLIC_RTTI VCLXFormattedSpinField : public VCLXSpinField
{
private:
FormatterBase* mpFormatter;
diff --git a/include/xmloff/NamedBoolPropertyHdl.hxx b/include/xmloff/NamedBoolPropertyHdl.hxx
index d5fe6eb83927..1a5609c4042e 100644
--- a/include/xmloff/NamedBoolPropertyHdl.hxx
+++ b/include/xmloff/NamedBoolPropertyHdl.hxx
@@ -26,7 +26,7 @@
/**
PropertyHandler for a named xml bool type:
*/
-class XMLNamedBoolPropertyHdl : public XMLPropertyHandler
+class SAL_DLLPUBLIC_RTTI XMLNamedBoolPropertyHdl : public XMLPropertyHandler
{
private:
const OUString maTrueStr;
diff --git a/include/xmloff/controlpropertyhdl.hxx b/include/xmloff/controlpropertyhdl.hxx
index 141111816dad..51f95986af0d 100644
--- a/include/xmloff/controlpropertyhdl.hxx
+++ b/include/xmloff/controlpropertyhdl.hxx
@@ -36,7 +36,7 @@ namespace xmloff
//= ORotationAngleHandler
- class ORotationAngleHandler : public XMLPropertyHandler
+ class SAL_DLLPUBLIC_RTTI ORotationAngleHandler : public XMLPropertyHandler
{
public:
ORotationAngleHandler();
@@ -48,7 +48,7 @@ namespace xmloff
//= OFontWidthHandler
- class OFontWidthHandler : public XMLPropertyHandler
+ class SAL_DLLPUBLIC_RTTI OFontWidthHandler : public XMLPropertyHandler
{
public:
OFontWidthHandler();
@@ -60,7 +60,7 @@ namespace xmloff
//= OControlBorderHandlerBase
- class OControlBorderHandler : public XMLPropertyHandler
+ class SAL_DLLPUBLIC_RTTI OControlBorderHandler : public XMLPropertyHandler
{
public:
enum BorderFacet