Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
af89738d
Kaydet (Commit)
af89738d
authored
Şub 26, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror=return-type
Change-Id: I44e627fa9de9c48a534cbc9ade6cc9d567553709
üst
2db16f4b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
nullptr.cxx
compilerplugins/clang/nullptr.cxx
+6
-3
No files found.
compilerplugins/clang/nullptr.cxx
Dosyayı görüntüle @
af89738d
...
...
@@ -8,6 +8,7 @@
*/
#include <cassert>
#include <cstdlib>
#include <set>
#include "compat.hxx"
...
...
@@ -17,9 +18,6 @@ namespace {
char
const
*
kindName
(
Expr
::
NullPointerConstantKind
kind
)
{
switch
(
kind
)
{
case
Expr
:
:
NPCK_NotNull
:
assert
(
false
);
// cannot happen
// fall through
case
Expr
:
:
NPCK_ZeroExpression
:
return
"ZeroExpression"
;
case
Expr
:
:
NPCK_ZeroLiteral
:
...
...
@@ -28,6 +26,11 @@ char const * kindName(Expr::NullPointerConstantKind kind) {
return
"CXX11_nullptr"
;
case
Expr
:
:
NPCK_GNUNull
:
return
"GNUNull"
;
case
Expr
:
:
NPCK_NotNull
:
assert
(
false
);
// cannot happen
// fall through
default
:
std
::
abort
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment