Kaydet (Commit) 387a035d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

New loplugin:externvar: sal

Change-Id: Iefc33784f21e7a0b88c8d6308618926e38ab8554
üst 2f3bc785
......@@ -34,6 +34,11 @@
#include <rtl/stringconcat.hxx>
#endif
#ifdef RTL_STRING_UNITTEST
extern bool rtl_string_unittest_const_literal;
extern bool rtl_string_unittest_const_literal_function;
#endif
// The unittest uses slightly different code to help check that the proper
// calls are made. The class is put into a different namespace to make
// sure the compiler generates a different (if generating also non-inline)
......
......@@ -39,6 +39,11 @@
#include <sal/log.hxx>
#ifdef RTL_STRING_UNITTEST
extern bool rtl_string_unittest_const_literal;
extern bool rtl_string_unittest_const_literal_function;
#endif
// The unittest uses slightly different code to help check that the proper
// calls are made. The class is put into a different namespace to make
// sure the compiler generates a different (if generating also non-inline)
......
......@@ -17,6 +17,10 @@
#ifdef LIBO_INTERNAL_ONLY // "RTL_FAST_STRING"
#if defined RTL_STRING_UNITTEST_CONCAT
extern bool rtl_string_unittest_invalid_concat;
#endif
#ifdef RTL_STRING_UNITTEST
#define rtl rtlunittest
#endif
......
......@@ -35,6 +35,10 @@
#include <rtl/stringconcat.hxx>
#endif
#ifdef RTL_STRING_UNITTEST
extern bool rtl_string_unittest_invalid_conversion;
#endif
// The unittest uses slightly different code to help check that the proper
// calls are made. The class is put into a different namespace to make
// sure the compiler generates a different (if generating also non-inline)
......
......@@ -39,6 +39,10 @@
#include <rtl/stringconcat.hxx>
#endif
#ifdef RTL_STRING_UNITTEST
extern bool rtl_string_unittest_invalid_conversion;
#endif
// The unittest uses slightly different code to help check that the proper
// calls are made. The class is put into a different namespace to make
// sure the compiler generates a different (if generating also non-inline)
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_SAL_INC_SALUSESYSLOG_HXX
#define INCLUDED_SAL_INC_SALUSESYSLOG_HXX
#include <sal/config.h>
#include <config_global.h>
#if HAVE_SYSLOG_H
extern bool sal_use_syslog;
#endif
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
......@@ -27,6 +27,7 @@
#include "sal/log.hxx"
#include "sal/types.h"
#include "misc.hxx"
#include "salusesyslog.hxx"
#if defined ANDROID
#include <android/log.h>
......
......@@ -33,12 +33,11 @@
#include "sal/types.h"
#include <saltime.hxx>
#include <salusesyslog.hxx>
#if HAVE_SYSLOG_H
#include <string.h>
#include <syslog.h>
// from sal/osl/all/log.cxx:
extern bool sal_use_syslog;
#endif
extern "C" {
......
......@@ -5090,6 +5090,6 @@ class GlobalObject
}
};
GlobalObject theGlobalObject;
static GlobalObject theGlobalObject;
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
......@@ -9,7 +9,6 @@
// activate support for detecting errors instead of getting compile errors
#define RTL_STRING_UNITTEST_CONCAT
bool rtl_string_unittest_invalid_concat = false;
#include <sal/types.h>
#include <cppunit/TestFixture.h>
......@@ -22,6 +21,8 @@ bool rtl_string_unittest_invalid_concat = false;
#include <typeinfo>
bool rtl_string_unittest_invalid_concat = false;
using namespace rtl;
namespace std
......
......@@ -9,10 +9,6 @@
// activate the extra needed ctor
#define RTL_STRING_UNITTEST
bool rtl_string_unittest_const_literal;
bool rtl_string_unittest_invalid_conversion;
bool rtl_string_unittest_const_literal_function;
bool rtl_string_unittest_non_const_literal_function;
#include <sal/types.h>
#include <cppunit/TestFixture.h>
......@@ -21,6 +17,10 @@ bool rtl_string_unittest_non_const_literal_function;
#include "rtl/string.hxx"
#include "rtl/strbuf.hxx"
bool rtl_string_unittest_const_literal;
bool rtl_string_unittest_const_literal_function;
static bool rtl_string_unittest_non_const_literal_function;
namespace test { namespace ostring {
class StringLiterals: public CppUnit::TestFixture
......
......@@ -9,10 +9,6 @@
// activate the extra needed ctor
#define RTL_STRING_UNITTEST
extern bool rtl_string_unittest_const_literal;
extern bool rtl_string_unittest_invalid_conversion;
extern bool rtl_string_unittest_const_literal_function;
extern bool rtl_string_unittest_non_const_literal_function;
#include <sal/config.h>
......@@ -26,6 +22,9 @@ extern bool rtl_string_unittest_non_const_literal_function;
#include "rtl/ustring.hxx"
#include "rtl/ustrbuf.hxx"
extern bool rtl_string_unittest_const_literal;
bool rtl_string_unittest_invalid_conversion;
namespace test { namespace oustring {
class StringLiterals: public CppUnit::TestFixture
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment